<style>
.container{
max-width: 600px;
height: 300px;
border: 1px solid darkorange;
margin: 50px auto;
}
.img-box{
width: 100px;
height: 200px;
background-color: green;
display: inline-block;
float: left;
}
.auto{
padding-left: 120px;
}
</style>
</head>
<body>
<div class="container">
<div class="img-box"></div>
<div class="auto">梵蒂冈梵蒂冈法国发过法国发发发发发发发·法国梵蒂冈地方官法国法国梵蒂冈法国发过·规范化规范化规范化风格化风格化风格化发·分合同法合同法合同法合同法合同·</div>
</div>
</body>
</html>张大神讲的两列自适应布局,为什么是用padding-left 我发现margin-left也是可以的,但是对于用padding不懂渠清
滄浪之水