Band of Brothers HTML5 tutorial set the following versions of IE9 browser that supports HTML5

When HTML2.HTML5 just released because the standard among browsers is not uniform, the developer's time is wasted in resolving the compatibility between the Web browser. However, due to the development of the W3C and WHATWG HTML5 new version, as well as the use of HTML5 in recent years, coupled with the full support of the major browsers, already has a very rich compatibility solutions, most applications in HTML5 on older versions of the browser You can also run normally, it is because people do not hesitate to guarantee compatibility with HTML5 development site. HTML5 is not packaged inside what is very complicated, impractical function, but encapsulates the simple and practical features, HTML5 internal functions but not revolutionary development in nature, does not mean to create out of all the HTML4 website must be rebuilt only requiring each Web browser in the future to run correctly developed using HTML5 features. The latest version of Safari, Chrome, Firefox and Opera support some HTML5 features. IE 9 will support some HTML5 features, IE10 will fully support HTML5. IE versions of IE8 and below support HTML5 tags is limited, we can solve the problem IE browser support for HTML5 part of the common functions by adding a script in a web page the way. Let IE (including IE6) support for HTML5 elements, we need to add the following JavaScript code in the HTML head, Opera, FireFox and other non-IE browsers will ignore the code.

47ec89277a05449fa3f6e15bdefe60d2.png

The above code will only run in IE browser, it is also important to note that the call html5.js files must be added inside the head element of the page in the page, because the IE browser must be aware of this element in the elements before parsing, so the js file can not be called in the bottom of the page. In addition, the page also need to complete the main structure, like the body, and document type Less. The html5 js file if they feel it will affect the speed of your web page open, you can put html5 js file downloaded directly down and then upload to your own server calls alone.

Before too long, with the development of HTML5, more and more users will choose to install the browser supports HTML5 better use of that time the developer will need to consider the following versions of IE9 compatibility issues.

Guess you like

Origin www.cnblogs.com/itxdl/p/11635147.html