The following code causes #headline to overflow #wrapper and I do not understand why this is happening.
HTML:
4条回答 甜味超标 (楼主) 2021-01-11 12:01 You need to use "overflow:hidden" in your wrapper element #wrapper { background: #fea; white-space: nowrap; width: 50%; overflow: hidden; } I updated your sample in jsfiddle http://jsfiddle.net/XjstZ/72/ 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
You need to use "overflow:hidden" in your wrapper element
#wrapper { background: #fea; white-space: nowrap; width: 50%; overflow: hidden;
}
I updated your sample in jsfiddle http://jsfiddle.net/XjstZ/72/