美文网首页
css两个类一起的选择器在IE没生效

css两个类一起的选择器在IE没生效

作者: 盖碗茶g | 来源:发表于2018-10-11 11:10 被阅读0次

    代码如下

    .el-menu-item .is-active {
        background-color: white;
        background-color: red\9;
        border: 1px solid white;
        border-radius: 15px;
        box-shadow: 0px 0px 1px #001325;
    }
    

    两个类都是同一个div的class,但是.el-menu-item和.is-active中间有一个空格,导致在谷歌浏览器正常,但是在IE下没有生效这段css
    最后将空格去掉,问题解决!!!

    相关文章

      网友评论

          本文标题:css两个类一起的选择器在IE没生效

          本文链接:https://www.haomeiwen.com/subject/fetbaftx.html