<head>
<style>
.ABC{width:100px; height:100px; background:red; margin:auto; margin-left:20px;}
</style>
</head>
<body>
<div class="ABC"></div>
</body>
</html>
为什么居中了之后不能再向左挪20px?
为什么顺序改了就提示代码错误啊?
.ABC{width:100px; height:100px; background:red; margin-left:20px; margin:auto;}
一定要使用相对定位或者绝对定位才能实现div居中后再往左或往右挪吗?