本文介绍了Insane Chrome问题... Chrome呈现扭曲?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能我是愚蠢的,俯视的东西,但我有一个奇怪的问题,只发生在Chrome(12.0.7,但也许其他版本)。查看此网站:



某些版本的Chrome 12(开发者版本)添加了对打开和关闭元素的适当支持。



根据,Chrome



为了解决这个问题,我想你应该替换的细节元素与其他一些元素。


Probably I'm being stupid and overlooking something, but I am having a bizarre issue that only occurs in Chrome (12.0.7, but maybe other versions as well). Check out this site:

http://www.jungledragon.com

On the right side, you will notice a community update panel. This is how it looks in any major browser except Chrome:

And here is how it renders in Chrome:

It renders twisties? When you click on one, it expands the row. Clicking again collapses the row. Nowhere in my code do I have any markup to implement such behavior. Is this some kind of special behavior because I am using figure tags? I tested this site in Chrome before and it was no issue then, so it could be a recent bug.

解决方案

The details element is supposed to exhibit the behaviour you're experiencing in Chrome.

The spec:

Some version of Chrome 12 (dev channel) added proper support for opening and closing the details element.

According to http://caniuse.com/#search=details, Chrome is the only browser to support this at the moment.

To fix this, I think you should replace the details element with some other element.

这篇关于Insane Chrome问题... Chrome呈现扭曲?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 16:17