2012-03-30 167 views
1

我想添加溢出到一個HTML元素,當然它適用於除IE以外的每個瀏覽器。IE 8溢出不呈現

這裏是我的代碼:

<div class = "twitter"> 
    <div class="twitter_image"> 
    <div class="user"></div> 
    </div> 
    <div class="label"> 
    <div class="boarder_control"> 
     <div class= "tweet_container"> 
     </div> 
    </div> 
    <div class ="smfooter"></div> 
    </div> 
</div> 

CSS:

.twitter { 
    padding-bottom: 2px; 
    background-color: green; 
    } 

    .smfooter { 
    padding: 2px; 
    height: 10px; 
    } 

    .label { 
    height: 15px; 
    } 

    .tweet_container { 
    overflow-y:auto; 
    } 

    .boarder_control{ 
    padding:5px; 
    } 

    .tweet { 
    margin-top: 7px; 
    margin-bottom: 7px; 
    } 

哪些使用溢出與IE 8的最佳實踐?

IE:

All other browsers on earth

地球上所有其他瀏覽器:

IE

感謝

回答

0

嘗試的高度也分配給.tweet_container例如

.tweet_container { height: 300px; overflow-y: auto; }