Safari/WebKit table over-run when using whitespace: nowrap

Having a strange rendering issue with Safari: I have a table inside a div. Inside the table I have lots of div's floated left. So the normal display is all of the divs within the td stacked up to the left until they fill the width, then flow to the next line, and so forth. So something like this: |===========================| | |---------------------| | | | XXX XXX XXX XXX | | | | XXX XXX | | | | | | | |---------------------- | |===========================| That works in all browsers except safari/webkit, where it ends up something like this: |===========================| | |-------------------------------| | | XXX XXX XXX XXX XXX XXX | | | | | |-------------------------------| |===========================| Update: Finally figured out the issue: my inner divs (the "XXX"s) had white-space: nowrap. Apparently webkit was no-wrap'ing the entire list of divs instead of applying the nowrap within the div. That was a nasty one. (This had nothing to do with display:none)
You can pop a public demo up on jsbin.com - just include the HTML snippet that relates to your code and the CSS. Hit save and the URL you get people can debug it.

以上就是Safari/WebKit table over-run when using whitespace: nowrap的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏