search

Home  >  Q&A  >  body text

前端 - IE9 css兼容问题

 .mirror .grid li:last-child .thumbnail{border-right:1px solid #ddd}.mirror .grid .fine{text-align:center;}

这样定义的样式.mirror .grid .fine在IE9下面不生效。

.mirror .grid .fine{text-align:center;}.mirror .grid li:last-child .thumbnail{border-right:1px solid #ddd}

反过来,在IE9下.mirror .grid li:last-child .thumbnail不生效。
请教一下,这个IE9有什么特殊的规则吗?
问题最终是因为ie下css文件太多,自动的忽略了部分定义。

阿神阿神2877 days ago589

reply all(2)I'll reply

  • 阿神

    阿神2017-04-17 11:13:28

    Except for missing a semicolon, I don’t see anything unusual

    reply
    0
  • 迷茫

    迷茫2017-04-17 11:13:28

    Please post the HTML part. Only after it is posted will we know the specific and optimal solution.
    Available for now

    css.mirror .grid li:last-child .thumbnail{border-right:1px solid #ddd!important;}
    

    Add !important to increase CSS priority

    reply
    0
  • Cancelreply