Currently, most browsers supportHTML5. However, some lower version browsers have some problems with HTML5 support.
all browsers, and unrecognizable elements will be automatically processed asinline elements. Therefore, you can use the following method to teach the browser to handle "unknown" HTML elements.
HTML5 defines 8 new HTML semantic elements. All these elements are block-level elements.
In order to allow older versions of browsers to display these elements correctly, you can set thedisplayattribute of CSS to block:
header, section, footer, aside, nav, main, article, figure { display: block; }
:
We can use the "HTML5 Enabling
JavaScript", "shiv" created by Sjoerd Visscher to solve this problem:
The above is the detailed content of Detailed explanation of HTML5 browser compatibility solutions. For more information, please follow other related articles on the PHP Chinese website!
The computer has Internet access but the browser cannot open the web page
What does browser mean
Browser compatibility
What are the production methods of html5 animation production?
How to solve the problem of garbled characters when opening a web page
The difference between HTML and HTML5
rgb to hexadecimal rgb
excel vlookup function usage