Home  >  Article  >  Web Front-end  >  IE6下div遮盖select的最优解决方案_html/css_WEB-ITnose

IE6下div遮盖select的最优解决方案_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:05:441041browse

a.本节精选html5/css频道里一款IE6下div遮盖select的最优解决方案

   原理:利用iframe来遮挡select,再用div来遮挡iframe,就这么简单。

        1)首先,建一个div层和iframe层;

        2)再设置它们的属性,重要的样式是用z-index来控制iframe和div的显示顺序,z-index的值越大,他会在表层显示。

        (注意:z-index只有在设置了position:absolute;后才会生效)

        3)再用js来控制它们显示和隐藏。

c.本CSS自适应宽度圆角按钮制作方法兼容浏览器IE6、IE7、IE8、IE9、firefox、chrome、opera、safari

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn