Any way to make firefox 3 compatible with HTML5 tags? (like section, header, etc.)

StackOverflow https://stackoverflow.com/questions/3605336

  •  25-09-2019
  •  | 
  •  

문제

So yeah.. firefox 3 isn't compatible with html5 tags. How would one get around this without recoding everything? You know, like IE's conditional statement or some such.

도움이 되었습니까?

해결책

The only thing you need do is add 'display:block' to their CSS. Otherwise, FF works just fine with HTML5.

다른 팁

You'd have to do some basic browser detection. There's two ways of going about it: testing if a particular feature is available, or doing some analysis of the browser's ID string.

Check out http://www.html5test.com/ and analyze their JS/html code for ideas.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top