2013-11-10 205 views
0

http://jsfiddle.net/zP49Z/儿童外出父元素

正如你所看到的,孩子们[更新]走出去的父元素[提要]的。我怎样才能解决这个问题?

#updates { 
    background: #B8C1C2; 
    box-shadow: inset 0 0 5px; 
    height: 100%; 
    float: right; 
    position: fixed; 
    top: 0; 
    right: 0; 
    z-index: 100; 
    overflow: auto; 
} 
#feeds { 
    width: auto; 
    height: 300px; 
} 
.update { 
    border-bottom: 1px solid #929493; 
    width: auto; 
    height: auto; 
    padding-bottom: 20px; 
    margin-top: 10px; 
} 

谢谢!

回答

0

您可以使用overflow-x:hidden;如果您想要包含Feed并滚动。查看这里:jsfiddle.net/MathiasaurusRex/zP49Z/2

#feeds { 
    width: auto; 
    height: 300px; 
    overflow-x: hidden; 
} 
+1

然后我不能滚动“饲料”。 – Thomas

+0

你可以使用overflow-x:hidden;如果您想要包含Feed并滚动。在这里查看:http://jsfiddle.net/MathiasaurusRex/zP49Z/2/ –

+0

谢谢,这工作! – Thomas