码迷,mamicode.com
首页 > Web开发 > 详细

简单的html兼容(参考js和css的常规写法)

时间:2016-06-13 11:14:45      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

    参考往常css/js的浏览器选择加载
    <!--[if lte IE 8]>
        <link rel="stylesheet" href="IEBrower.css">
    <![endif]-->
    <!--[if gt IE 8]><!-->
        <link rel="stylesheet" href="otherBrower.css">
    <!--<![endif]-->

    <!--[if lte IE 8]>
        <script src="IEBrower.js"></script>
    <![endif]-->
    <!--[if gt IE 8]><!-->
        <script src="otherBrower.js"></script>
    <!--<![endif]-->
    于是写了这个(IE对png图片的支持不友好)
    <!--[if lte IE 8]>
    <img src="Logo.jpg" class="logo"/>
    <![endif]-->
    <!--[if gt IE 8]><!-->
    <img src="Logo.png" class="logo"/>
    <!--<![endif]-->

 

简单的html兼容(参考js和css的常规写法)

标签:

原文地址:http://www.cnblogs.com/RainbowInTheSky/p/5577807.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!