如何为ie指定不同的css [英] how to specify different css for ie
本文介绍了如何为ie指定不同的css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要为所有其他浏览器的IE和所有其他浏览器包含不同的.css文件。
I need to include different .css files for IE anf all other browsers.
我尝试下面但是不工作。
I tried the following but it doesn't work.
<!--[if !IE]><!-->
<link type="text/css" rel="stylesheet" href="css/my_style.css">
<!--<![end if]-->
<!--[if IE]><!-->
<link type="text/css" rel="stylesheet" href="css/my_style_IE.css">
<!--<![end if]-->
推荐答案
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="css/my_style_IE.css">
<![endif]-->
<!--[if !IE]> -->
<link type="text/css" rel="stylesheet" href="css/my_style.css">
<!-- <![endif]-->
您可以从以下链接获得更好的帮助。
You can get better help from below link.
http://www.quirksmode.org/css/condcom.html
Enajoy ...! :)
Enajoy...!! :)
这篇关于如何为ie指定不同的css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文