Home >Web Front-end >H5 Tutorial >Detailed introduction to html5 shiv.js and respond.min.js

Detailed introduction to html5 shiv.js and respond.min.js

小云云
小云云Original
2018-01-27 10:13:061947browse

html5shiv: Solve the problem that browsers below ie9 do not recognize the new tags of html5 and cause CSS to not work. This article mainly introduces the detailed explanation of html5 shiv.js and respond.min.js. It is quite good. Now I share it with you and give you a reference. I hope it can help you.

respond.min: Allow browsers that do not support css3 Media Query, including IE6-IE8 and other browsers, to support querying.

Since there are still a large number of users of IE6/IE7/IE8, in order to allow website visitors to access HTML5 websites normally, these two solutions are still needed.

The following are two The cdn address of this solution is written as:


<!--[if lt IE 9]>

  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.js"></script>

   <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>

<![endif]—>

There is also a css3-mediaqueries.js that allows IE8 and below to support css3 media queries. You can also introduce it like the above, but it will appear. Splash screens are not particularly recommended. The above are the most commonly used

You can check other CDN addresses of bootstrap here http://www.bootcdn.cn/

The above is the detailed content of Detailed introduction to html5 shiv.js and respond.min.js. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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