html - IE下拉截止

标签 html css internet-explorer select internet-explorer-7

我正在用 css 修复 ie 下拉截止问题。 它对我来说很好用。我正在使用下拉箭头。 此下拉列表在 ie7 和 ie6 中不可见。 我附上了一张图片。 enter image description here

我尝试降低过滤器可见的不透明度:对于 ie7,但使文本消失。我可以修复它吗?

需要帮助使其在 ie7 中可见。

<style type="text/css">
.styled-select select {
   background: transparent;
   width: 100%;
    width: auto;
   padding: 5px;
   line-height: 1;
   border: 0px none transparent;
   border-radius: 0;
   outline:0;
   height: 30px;
   -webkit-appearance: none;
   position:absolute;
   top:-2px;
   left:-1px;
   }
   .styled-select {
   width: 155px;
   height: 25px;
   overflow: hidden;
   background-image: url("dropdown-arrow.gif");
   background-repeat: no-repeat;
   background-position:top right;
   background-color:#fff;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: inset 0px 1px 2px #ccc;
-webkit-box-shadow: inset 0px 1px 2px #ccc;
box-shadow: inset 0px 1px 2px #ccc;
   border: 1px solid #c3c3c3;
   position:relative;
   }

</style>
<div class="styled-select"> 
   <select>
      <option value="0">Please Select</option>
<option value="BILLING" >Default Billing</option>
<option  value="Auburn Office" >Auburn Office</option>
<option  value="Boston Office" >Boston Office</option>
<option  value="Central Ave Office" >Central Ave Office</option>
<option  value="Knoxville Office" >Knoxville Office</option>
<option  value="Seahawks HQ" >Seahawks HQ</option>
<option  value="Test Ship To Address Field Lenght with this line 1" >Test Ship To Address Field Lenght with this line 1</option>
<option  value="Zones" >Zones</option>
<option  value="test address" >test address</option>
</select>

</div>

请看:- http://jsfiddle.net/Pq2zH/embedd

最佳答案

我最近遇到了这个。显然 IE 7 中存在一个 SELECT 列表保持无限 z-index 的错误。要解决此问题,您可能必须实现 javascript 来显示或隐藏下拉列表,但这是一个痛苦的解决方案。最好是弃用对旧浏览器的支持:)

关于html - IE下拉截止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19635500/

相关文章:

html - 导航栏适用于 chrome 和 firefox,但不适用于 Internet Explorer

javascript - 如果在 touchstart 上删除触摸的子元素,则不会触发父级的“Touchend”事件

html - 使用背景图片还是 CSS3 渐变效果更好? (电话机)

css - 具有恒定像素字体大小的响应式文本大小?

javascript - 正则表达式在 FF 和 IE 中给出不同的输出

javascript - IE垂直滚动条宽度与CSS和HTML

javascript - 集中一个圆形边框

html - 为什么将图像的宽度设置为由 css flexbox 排序的 div 内的百分比会增加额外的高度到 div?

css - 根据菜单项悬停更改 Logo

javascript - 当托管在硬盘驱动器上时,图像不会在浏览器中呈现 : I. E. Firefox、Safari、在 Chrome 中加载