Replace background in Twitter Bootstrap navbar for

2019-03-30 08:22发布

I am trying to replace the background image for a Twitter Bootstrap navbar with my own image. It works in Chrome, Firefox, and Safari but not in Internet Explorer. What am I missing for IE? (It remains the plain black in IE)

.navbar.navbar-inverse.navbar-fixed-top .navbar-inner {
    background: url(/assets/navbar.png) repeat-x;
    box-shadow: none;
    border: none;
    -webkit-box-shadow: none;
}

1条回答
孤傲高冷的网名
2楼-- · 2019-03-30 08:54

You need to add this:

filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
查看更多
登录 后发表回答