我有一个容器来显示用户活动。我将溢出自动设置为这个容器。它在 chrome、FF 等中运行良好,但在 IE7 中,内容从该容器溢出。它不会隐藏。在下面检查
in jsfiddle : http://jsfiddle.net/nUQ8V/1/
or code :
**CSS:**
----------------------------------
p {
margin:0; font-family:arial; font-size:12px;
}
.container {
height:200px;
width:150px;
overflow:auto;
padding:10px;
border:2px solid #ddd;
}
.inner {
padding:10px 0;
border-bottom:1px dotted #ccc;
position:relative;
}
.title {
font-weight:bold;
}
**html**
------------------------------
<div class="container">
<div class='inner'>
<p class="title">Gopi Buyer Viewed</p>
<p>Sri Ragavendra Castle</p>
<p>Korattur</p>
</div>
<div class='inner'>
<p class="title">Gopi Buyer Viewed</p>
<p>Sri Ragavendra Castle</p>
<p>Korattur</p>
</div>
<div class='inner'>
<p class="title">Gopi Buyer Viewed</p>
<p>Sri Ragavendra Castle</p>
<p>Korattur</p>
</div>
<div class='inner'>
<p class="title">Gopi Buyer Viewed</p>
<p>Sri Ragavendra Castle</p>
<p>Korattur</p>
</div>
</div>