本文介绍了Webkit错误?破碎的CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上工作。这是我的代码:我不时听到:)


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 ?

解决方案

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 :)

这篇关于Webkit错误?破碎的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 08:12