Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css IE中显示下拉列表有问题_Css_Internet Explorer_Drop Down Menu_Navigation_Gradient - Fatal编程技术网

Css IE中显示下拉列表有问题

Css IE中显示下拉列表有问题,css,internet-explorer,drop-down-menu,navigation,gradient,Css,Internet Explorer,Drop Down Menu,Navigation,Gradient,我不知道为什么这个下拉菜单不会出现在IE中。有人能看到问题是什么吗?它适用于所有其他浏览器,只是不适用于IE。我知道IE中的渐变需要很多思考。这是我的密码 .menu { border: 1px solid #ccc; background: #006699; /* Old browsers */ background: -moz-linear-gradient(top, #006699 0%, #1f416b 100%); /* FF3.6+ */ backgrou

我不知道为什么这个下拉菜单不会出现在IE中。有人能看到问题是什么吗?它适用于所有其他浏览器,只是不适用于IE。我知道IE中的渐变需要很多思考。这是我的密码

.menu { 
   border: 1px solid #ccc;
   background: #006699; /* Old browsers */
   background: -moz-linear-gradient(top,  #006699 0%, #1f416b 100%); /* FF3.6+ */
   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#006699), color-stop(100%,#1f416b)); /* Chrome,Safari4+ */
   background: -webkit-linear-gradient(top,  #006699 0%,#1f416b 100%); /* Chrome10+,Safari5.1+ */
   background: -o-linear-gradient(top,  #006699 0%,#1f416b 100%); /* Opera 11.10+ */
   background: -ms-linear-gradient(top,  #006699 0%,#1f416b 100%); /* IE10+ */
   background: linear-gradient(to bottom,  #006699 0%,#1f416b 100%); /* W3C */
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#006699', endColorstr='#1f416b'); /* IE6-9 */  
}

.menu li a {
   padding: 15px 45px;
   text-decoration: none;
   font-size: 0.9em;
   color: #fff;
   font-family: Arial, sans-serif;      
}

.menu li.current > a,
.menu li.current > a:hover,
.menu li.current.hover > a {
   background: rgb(70,168,217); /* Old browsers */
   background: -moz-linear-gradient(top, rgba(122,188,255,1) 0%, rgba(96,171,248,1) 44%, rgba(64,150,238,1) 100%); /* FF3.6+ */
   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(122,188,255,1)), color-stop(44%,rgba(96,171,248,1)), color-stop(100%,rgba(64,150,238,1))); /* Chrome,Safari4+ */
   background: -webkit-linear-gradient(top, rgba(122,188,255,1) 0%,rgba(96,171,248,1) 44%,rgba(64,150,238,1) 100%); /* Chrome10+,Safari5.1+ */
   background: -o-linear-gradient(top, rgba(122,188,255,1) 0%,rgba(96,171,248,1) 44%,rgba(64,150,238,1) 100%); /* Opera11.10+ */
   background: -ms-linear-gradient(top, rgba(122,188,255,1) 0%,rgba(96,171,248,1) 44%,rgba(64,150,238,1) 100%); /* IE10+ */
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7abcff', endColorstr='#4096ee',GradientType=0 ); /* IE6-9 */
   background: linear-gradient(top, rgba(122,188,255,1) 0%,rgba(96,171,248,1) 44%,rgba(64,150,238,1) 100%); /* W3C */
   color: #fff;
   text-shadow: 0px -1px 0px rgba(0,0,0,0.2);
   cursor: default;
}

.menu li a:hover,
.menu li.hover > a {
   background: #b32416; /* Old browsers */
   background: -moz-linear-gradient(top,  #b32416 0%, #8f0222 44%, #6d0019 100%); /* FF3.6+ */
   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b32416), color-stop(44%,#8f0222), color-stop(100%,#6d0019)); /* Chrome,Safari4+ */
   background: -webkit-linear-gradient(top,  #b32416 0%,#8f0222 44%,#6d0019 100%); /* Chrome10+,Safari5.1+ */
   background: -o-linear-gradient(top,  #b32416 0%,#8f0222 44%,#6d0019 100%); /* Opera 11.10+ */
   background: -ms-linear-gradient(top,  #b32416 0%,#8f0222 44%,#6d0019 100%); /* IE10+ */
   background: linear-gradient(to bottom,  #b32416 0%,#8f0222 44%,#6d0019 100%); /* W3C */
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b32416', endColorstr='#6d0019'); /* IE6-9 */
}
哪个IE版本

我知道在html页面的头部需要类似的内容。与SVG或其他东西有关。条件格式

<!-- following class is conditional for IE9 and must be put in elements for css gradient to work -->
<!--[if gte IE 9]>
  <style type="text/css">
    .gradient {
       filter: none;
    }
  </style>
<![endif]-->

我使用这个网站来创建我所有的渐变。总是有用的。我们可以在JSFIDLE上获得一个例子吗?@VukašinManojlovićyea我将在FS FIDLE中上传一个例子并提供一个链接。@fredsbend我将尝试一下,看看它是否有效。我将使用此功能的参考也!IE不适用的版本是IE8。这里是我所指的页面的链接()。Nav在所有其他浏览器中都能工作,只是在IE8中不能。我尝试了编辑,但当我将鼠标悬停在下拉菜单上时,仍然没有得到任何结果。@Ajay你确定是渐变导致了问题吗?删除所有渐变,然后查看下拉列表是否显示在IE8上。default960中“菜单样式”下的所有内容。更改为简单的单色十六进制。如果确实显示,则是渐变导致问题,如果未显示,则不是渐变。我认为IE8有开发工具;您可以一次删除一个样式,而无需编辑页面。当你在页面上时,你是对的。有一次,我检查了IE8中的开发工具,并开始禁用样式。下拉菜单仍然不起作用。所以我猜是JS。
filter:progid:DXImageTransform.Microsoft.gradient
(startColorstr="#ff7abcff",endColorstr="#ff4096ee",GradientType=0);