您现在的位置: 365建站网 > 365文章 > 如何在 IE 中使用 HTML5 元素

如何在 IE 中使用 HTML5 元素

文章来源:365jz.com 点击数:221 更新时间:2009-09-15 09:51

让样式在 IE 中作用到未知的元素上——仅需 JS 创建此未知元素即可。

Hello World!

 

 1<html>
 2<head>
 3<style>
 4section { color: red; }
</style>
 5<script>
 6document.createElement("section")
</script>
 7</head>
 8<body>
 9<section>Hello World!</section>
10</body>
11</html>

方便地使用HTML5元素

JS for HTML5

 

Code 下载

HelloWorld.rar

参考资料

John Resig  《HTML5 Shiv》

Tag标签: html5,ie,createElement

生产内容,同时打通搜索引擎(SEO)与AI搜索引擎(GEO)流量入口的软件! 点击进入365建站器 »

您可能感兴趣的文章