HTML5 browser s...LOGIN

HTML5 browser support

HTML5 browser support

PC side

1) Among them, the most complete support is the chrome series

2) Opera is changed to chromium kernel Okay...so the scores are basically the same

3) Surprisingly, Firefox and W3C standards have always been at the forefront, but its support for H5 is not the highest!!!

4) Below IE10, the experience of H5 is unsatisfactory...it can only support part of it

5) The old version of Safari is much better than the old version series of IE...

Tablet version

chrome ranks first

android, firefox, ios, and opera are similar (except IE)

The compatibility of the mobile terminal is much better than that of the PC terminal

Mobile version

The major series of browsers on the mobile phone have good support...except for a few very old series...


Several ways to solve the problem that IE browser does not support html5 tags:

1.javascript: document.createElenment("...")

function(){                                                                                                                          'aside','section','nav','menu','hgroup','details','dialog','figure','figcaption'],               len=element.length;          


# While (len--) {
DOCUMENT.CREATEELEMENT (Element [i])


#2

. Someone has already written a complete js file, you only need to import it, like this:

<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"> ;</script>

<![endif]-->

Or:

<!--[if lte IE 9]>
<script src="http://html5shiv.googlecode. com/svn/trunk/html5.js"></script>
< ![endif]-->

##A special explanation should be made here: it is IE’s unique comment judgment:

lte: is the abbreviation of Less than or equal to, which means less than or equal to.

lt: It is the abbreviation of Less than, which means less than.

gte: It is the abbreviation of Greater than or equal to, which means greater than or equal to.

gt: It is the abbreviation of Greater than, which means greater than.

!: It means not equal to, which is the same as the not equal to judgment character in JavaScript

Because although IE9 supports html5 tags, the support is not complete, so you can also write "lte ",It depends on your choice!



Next Section

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>渲染 HTML5</title> <!--[if lt IE 9]> <script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script> <![endif]--> <script>document.createElement("myHero")</script> <style> myHero { display: block; background-color: yellow; padding: 50px; font-size: 20px; width: 25%; } </style> </head> <body> <h3>标题</h3> <article> php中文网 </article> <br> <myHero>增加新的内容</myHero> </body> </html>
submitReset Code
ChapterCourseware