How to define specific CSS rules for IE9 alone?

2019-01-13 13:14发布

Friends, please help me in defining specific css rule for IE9? For example like this

/* IE 6 fix */
* html .twit-post .delete_note a { background-position-y: 2px; }
* html .twit-post .delete_note a:hover { background-position-y: -14px; }

8条回答
叼着烟拽天下
2楼-- · 2019-01-13 14:04

Use IE conditional comments:

<!--[if ie 9]>
    your stuff here
<![endif]-->
查看更多
何必那么认真
3楼-- · 2019-01-13 14:11

You shouldn't need to target IE9. It is capable of handling modern css and shouldn't be hacked. This is an outdated method of developing.

查看更多
登录 后发表回答