Replace background in Twitter Bootstrap navbar for IE

主宰稳场 提交于 2019-12-05 00:54:19

问题


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:


You need to add this:

filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);


来源:https://stackoverflow.com/questions/14088485/replace-background-in-twitter-bootstrap-navbar-for-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!