搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Why is display:block; required in FF 3.6 to get HTML5 styleable elements to work properly?

  • 1 个回答
  • 8 人有此问题
  • 1 次查看
  • 最后回复者为 AnonymousUser

more options

I had all sorts of problems getting styleable elements to work in Firefox 3.6. The below code works:



Test

 article { display: block; border: 1px solid red }



Welcome This is a test.



However, it works only because of:

display: block;

when styling the HTML5 article element. If I leave the above code out of the style then the red border is not displayed properly. This code works fine in Chrome and even versions of IE when the article element is added to the DOM.

This happened

Every time Firefox opened

== Always

I had all sorts of problems getting styleable elements to work in Firefox 3.6. The below code works: Test article { display: block; border: 1px solid red } Welcome This is a test. However, it works only because of: display: block; when styling the HTML5 article element. If I leave the above code out of the style then the red border is not displayed properly. This code works fine in Chrome and even versions of IE when the article element is added to the DOM. == This happened == Every time Firefox opened == Always

被采纳的解决方案

The HTML5 parsing engine is not turned on by default in the 3.6.x versions, it is turned on in Firefox 4

定位到答案原位置 👍 0

所有回复 (1)

more options

选择的解决方案

The HTML5 parsing engine is not turned on by default in the 3.6.x versions, it is turned on in Firefox 4