前端技术分享论坛
标题:
margin:auto margin:0 auto; 有区别不?
[打印本页]
作者:
phpvar
时间:
2013-9-10 15:10
标题:
margin:auto margin:0 auto; 有区别不?
margin:auto=margin:auto auto auto auto;
margin:0 auto=margin:0 auto 0 auto;
页面上我没看到有显示效果区别?
作者:
phpvar
时间:
2013-9-10 15:12
margin-top margin-bottom 设置为 auto 表示 0
margin:auto 跟 margin:0 auto 只是概念上的不同,但实际在页面的展示效果是一样的 ,可以这样理解。
前端技术群成员指出这是权威指南书里面的明文说法!
欢迎光临 前端技术分享论坛 (https://www.phpvar.com/bbs/)
Powered by Discuz! X3.2