大神看看这个代码
.wrap{margin-top:20px; float:left; position:absolute; left:50%;} .wrap-center{ list-style:none; background:#ccc; position:relative; right:50%;} 为什么父元素用position:relative?这样结果出来不对啊,我用absolute正好。理解不了
.wrap{margin-top:20px; float:left; position:absolute; left:50%;} .wrap-center{ list-style:none; background:#ccc; position:relative; right:50%;} 为什么父元素用position:relative?这样结果出来不对啊,我用absolute正好。理解不了
2016-07-04
举报