Webkit Bug? Broken CSS

爷,独闯天下 提交于 2020-01-05 09:07:39

问题


Working on part of my website. Here's my code: http://jsfiddle.net/firelizzard/ASdMq/

In Chrome Beta (WebKit):

In Firefox (Gecko):

Gecko is rendering this code how I want it. What is up with webkit?

Chrome User Agent: Mozilla/5.0 (-OS-) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.11 Safari/535.19

Firefox User Agent: Mozilla/5.0 (-OS-) Gecko/20100101 Firefox/10.0.1


Tally

Gecko:

  • Works: Firefox 10

WebKit:

  • Doesn't: Safari 5, Chrome 18

Trident:

  • Works: Internet Explorer 8, 9
  • Doesn't: Internet Explorer 7

Presto:

  • Doesn't: Opera ?

回答1:


The issue definetely looked as a bug to me. While playing with the code posted on jsfiddle, I've noticed that adding some content to cells makes Opera 11.61 behave closer to what was expected:

<td class="dm_other horz">2</td>
<td class="dm_other horz">3</td>

I've came to try it because it reminded me of the notorious whitespace problems I'm hearing about from time to time :)



来源:https://stackoverflow.com/questions/9303873/webkit-bug-broken-css

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!