开发者

overflow-y: auto & width: 100% in Google's Chrome

width:100%; overflow: auto; /* or overflow-y:auto or scroll */ works fine in all browsers but Google's Chrome. It is my understanding that this is a bug, however, I can开发者_如何学编程not find any workaround. The demo is available here:

http://anuary.com/#!/home

Screenshot (FF & Google Chrome):

overflow-y: auto & width: 100% in Google's Chrome


Remove the margin-left on #body.

Chrome does have some problems with margins and floated elements, but this fix doesn't appear to harm your layout.


Fixed ! Remove the margin-left from the #body styles.

position: relative;
overflow-x: hidden;
overflow-y: scroll;
height: 100%;
background: cyan;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜