2012-03-30 99 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; }