Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How do IE browsers add HTML5 elements

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "IE browser how to add HTML5 elements", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "IE browser how to add HTML5 elements" article.

InternetExplorer browser issu

We can use "HTML5EnablingJavaScript", "shiv" created by SjoerdVisscher to solve this problem:

The above code is a comment that reads the html5.js file and parses it when the version of the IE browser is less than IE9.

Note: domestic users please use the static resource library of this site (Google resource library is unstable in China):

Html5shiv is a better solution for IE browsers. Html5shiv mainly solves the problem that the new elements proposed by HTML5 are not recognized by IE6-8, these new elements cannot be used as parent nodes to wrap child elements, and the CSS style can not be applied.

Perfect Shiv solution

Example

Render HTML5

My first article

Rookie tutorial-learn not only the technology, but also the dream!

The html5shiv.js reference code must be placed in the element because the IE browser needs to load the file before parsing the new HTML5 element.

The above is about the content of this article on "how to add HTML5 elements to IE browsers". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report