ie only stylesheet not working, code included

2019-09-19 07:50发布

I coded a website, and obviously when uploaded it to test it, its messing up in IE.

Im trying to insert an IE only stylesheet, but its not working, the code I have is:

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

Whats going wrong?

Any one can help me, that would be amazing?

On IE everything is getting mis aligned.

1条回答
霸刀☆藐视天下
2楼-- · 2019-09-19 08:29

Well your syntax seems ok.Try using the developer toolbar to check if the path to your CSS file is right

<!--[if IE]>
        <link rel="stylesheet" type="text/css" href="all-ie-only.css" />
<![endif]-->
查看更多
登录 后发表回答