HTML5标签 兼容低版本IE浏览器
2021-02-05 16:15
标签:ogre css 兼容 style 签名 detail res list tail 利用document.createElement创建当前浏览器(IE6-8)不支持的标签名 HTML5标签 兼容低版本IE浏览器 标签:ogre css 兼容 style 签名 detail res list tail 原文地址:https://www.cnblogs.com/Harold-Hua/p/13125112.htmlDOCTYPE html>
html>
head>
meta charset="UTF-8">
title>title>
style type="text/css">
article {
color: #008FD8;
font-size: 36px;
}
style>
script type="text/javascript">
(function() {
if (!
/*@cc_on!@*/
0) return;
var e = "abbr, article, aside, audio, canvas, datalist, details, dialog, eventsource, figure, footer, header, hgroup, mark, meter, nav, output, progress, section, time, video".split(", ");
var i = e.length;
while (i--) {
document.createElement(e[i]);
}
})();
script>
head>
body>
article>Haroldarticle>
body>
html>
下一篇:HTML中添加meta元数据内容
文章标题:HTML5标签 兼容低版本IE浏览器
文章链接:http://soscw.com/index.php/essay/51405.html