开发者

Specific stylesheet for IE8

How can I make a specific CSS stylesheet for Internet Explorer 8?

I mean, how can I load it only if the browser is IE8? (An开发者_如何学Pythond not IE7 and IE6)


use this

<!--[if IE 8]>
<link href="/stylesheets/iestyle8.css" rel="stylesheet" type="text/css" />
<![endif]--> 


<!--[if IE 8]>
<link href="ie8.css" rel="stylesheet" type="text/css" />
<![endif]-->

http://www.quirksmode.org/css/condcom.html


You can use the following:

<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="ie8.css" media="screen" />
<![endif]-->
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜