------------------------- -----IE6 browser--------------------------------------------- -- ---------------------------------IE8 browser------ ----------------------------------------------- It’s all the same If I am not wrong, old browsers do not recognize these newly added tags, so they use inline elements to deal with them. Therefore, one solution is to turn them into block elements so that they will not be in the The same line, so that the same effect can be displayed in both old and new browsers. Furthermore, it is to let the browser recognize the tag. The specific solution for adding new tags is:
IE8/IE7/IE6 supports document. For the tags generated by the createElement method, you can use this feature to allow these browsers to support HTML5 new tags. The code is as follows:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn