替换IE的Twitter Bootstrap导航栏中的背景 [英] Replace background in Twitter Bootstrap navbar for IE

查看:68
本文介绍了替换IE的Twitter Bootstrap导航栏中的背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用我自己的图像替换Twitter Bootstrap导航栏的背景图像.它可以在Chrome,Firefox和Safari中使用,但不能在Internet Explorer中使用.我为IE想念什么? (在IE中仍然是纯黑色)

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;
}

推荐答案

您需要添加以下内容:

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

这篇关于替换IE的Twitter Bootstrap导航栏中的背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆