22问答网
所有问题
DIV CSS中margin 0px auto什么意思
如题所述
举报该问题
推荐答案 2017-09-11
margin:0 auto 表示盒子左右居中。第一个参数为0表示上下间距为0,第二个表示左右间距为自适应,即左右居中
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://22.wendadaohang.com/zd/XT0C6Sf62IfXSfffII.html
相似回答
DIV
CSS中margin
0px
auto什么意思
答:
一个元素的上下外边距为0,左右外边距自动产生
,在ff、ch、op、sf等浏览器中,左右auto是拿来让这个元素横向居中的。ie中要在body上加text-align: center;元素才横向居中
DIV
CSS中margin
0px
auto什么意思
答:
div+css中margin:0px auto,
常用于让DIV布局居中作用
。margin:0 auto 设置对象上下间距为0,左右自动。可拆分: margin:0 auto 0 auto(上下)还可拆分为:margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;
大家正在搜
margin是什么意思中文
margin什么意思
margin200pxauto
margin0auto不居中
marginleftauto
margin0auto不生效
margin和padding区别
marginauto
marginauto无效