[英]How can I to specific the css rules for Chrome and IE in my HTML page or in SCSS file?
I want to specific that the web browsers as chrome, opera, firefox use specific css file and the browsers as IE (from version 7 to 10) using another css files. 我想具体说明浏览器如chrome,opera,firefox使用特定的css文件和浏览器作为IE(从版本7到10)使用另一个css文件。
How can I to specific this?? 我怎么能具体这个?
Thanks everyone for your help! 谢谢大家的帮助! merry christmas! 圣诞节快乐!
You can use IE conditional comments such as this: 您可以使用IE条件注释,例如:
<!--[if IE]>
According to the conditional comment this is IE<br />
<![endif]-->
So you could use something like this: 所以你可以使用这样的东西:
<head>
<link href="styles.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 10]>
<link href="iestyles.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.