2024年09月24日 建站教程
ie如何利用html注释写法做IE兼容,下面web建站小编给大家详细介绍一下<!–[if IE]>正常HTML代码<[endif]–>的用法!
方法一:
<!--[if lt IE 9]> <script src="/staticipkd.js"></script> <![endif]-->
方法二:
<!--[if lte IE 9]>
//ie9及以下的浏览器不支持
<div class="lte-ie9"></div>
<style>
.lte-ie9{
position:absolute;
top:0;left:0;right:0;bottom:0;
z-index:1000;
padding:100px;
background:#333;
color:#999;
font-size:35px;
text-align:center;
}
</style>
<[endif]-->
本文链接:http://so.lmcjl.com/news/13809/