我想具体说明,Chrome,Opera,firefox等Web浏览器使用特定的CSS文件,而IE(从版本7到10)则使用另一个CSS文件将浏览器作为IE。
我该如何具体?
谢谢大家的帮助!圣诞节快乐!
最佳答案
您可以使用IE这样的条件注释:
<!--[if IE]>
According to the conditional comment this is IE<br />
<![endif]-->
因此,您可以使用如下所示的内容:
<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>
您可以了解有关它们的更多信息here