<style type="text/css">
.parent
{
width : 200px;
height : 50px;
background-color : #FFFFCC;
overflow : visible;
}
.child
{
width : 255px;
height : 30px;
background-color : #CCCCFF;
}
</style>
<div class="parent">
<div class="child">Child Content</div>
</div>
它在Firefox中正常工作,但在IE7中父div與子div拉伸。無論如何阻止IE7伸展父母的div?對於一些設計限制,div無法定位。我試圖在互聯網上搜索它,但找不到任何解決方案!在此先感謝您的時間!如何阻止父div在IE7中拉伸
我無法在此上傳圖片。您可能要檢查什麼樣子轉到下面的鏈接 http://img27.imageshack.us/img27/5876/firefoxjn.png
感謝這樣快速的答案,但對於一些設計約束,沒有任何的div可以定位。 – zedeye 2011-06-05 13:39:59