1

当使用此类 chrome 左对齐我的 div 时,当我检查元素并删除并添加隐藏的溢出时,它会弹回中心.....不确定问题是什么

.contentbody {
    width: 74%;
    padding: 0%;
    margin-right: auto;
    margin-left: auto;  
    -webkit-border-radius: 40px;
    overflow: hidden;
}
4

1 回答 1

0

尝试

.contentbody {
    width: 74%;
    padding: 0%;
    margin: auto; 
    border-radius: 40px; /* this property can now be used without prefix */
}
于 2013-03-20T18:49:38.817 回答