<div class="box">
<div class="content"></div>
</div>
.box{
width: 200px;
height: 200px;
border: 2px red solid;
overflow: hidden;
}
.content{
width: 200px;
height: 200px;
background: red;
position: relative;
}
这个时候在IE6,7下你会发现overflow: hidden失效了;
解决方案:
.box{
width: 200px;
height: 200px;
border: 2px red solid;
overflow: hidden;
*position: relative;
}