背景图片不能仅在IE中阅读

时间:2015-11-10 22:11:09

标签: css internet-explorer cross-browser

是的,以下是关闭的,它只是嵌套在SASS中,所以相关的部分粘贴在下面:

.greenBox {
    background: url('../images/background_bubble.png'); // ignored only in IE
    background-repeat:no-repeat;
    transition: .2s; 
    color: #FFF; 
    width: 310px; 
    height: 137px;
    position: relative; 
    overflow:hidden;
    z-index: 2;
    display: inline-block;
    *// 

更新

所以也试过了:

.greenBox {
    background: url('../images/background_bubble.png') no-repeat; // this line

没有运气。是的,样式已关闭

1 个答案:

答案 0 :(得分:0)

Try adding a space there on the background-repeat line... IE can be super picky

.greenBox {
        background: url('../images/background_bubble.png'); // ignored only in IE
        background-repeat: no-repeat;
        transition: .2s; 
        color: #FFF; 
        width: 310px; 
        height: 137px;
        position: relative; 
        overflow:hidden;
        z-index: 2;
        display: inline-block;
        *//