IE8 css selector

后端 未结 14 1943
臣服心动
臣服心动 2020-11-30 22:44

To target elements only in IE browsers i\'ll use

IE6:

* html #nav li ul {
    left: -39px !important;
    border: 1px solid red;
}

14条回答
  •  忘掉有多难
    2020-11-30 23:17

    This question is ancient but..

    Right after the opening body tag..

    
    

    Right before the closing body tag..

    
    

    CSS..

    #IE8Body #nav li ul {}
    

    You could do this for all IE browsers using conditional statements, OR target ALL browsers by encapsulating all content in a div with browser name + version server-side

提交回复
热议问题