How to define specific CSS rules for IE9 alone?

前端 未结 8 1788
感情败类
感情败类 2020-12-05 00:33

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:         


        
8条回答
  •  难免孤独
    2020-12-05 01:02

    You can prepend the CSS style with

    :root
    

    to make it IE9-specific, like this:

    :root #element { color:pink \0/IE9; }  /* IE9 */
    

提交回复
热议问题