Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Ďalšie informácie

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

  • 1 odpoveď
  • 8 má tento problém
  • 3 zobrazenia
  • Posledná odpoveď od 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

Vybrané riešenie

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

Čítať túto odpoveď v kontexte 👍 0

Všetky odpovede (1)

more options

Vybrané riešenie

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