解决div 盖住select 的方法
加个iframe即可。代码示例:
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />
<title>DIV盖住下拉列表</title>
</head>
<body>
<iframe style=”position:absolute;z-index:9;width:expression(this.nextSibling.offsetWidth);height:expression(this.nextSibling.offsetHeight);top:expression(this.nextSibling.offsetTop);left:expression(this.nextSibling.offsetLeft);” frameborder=”0″ ></iframe>
<div style=”z-index:10;position:absolute;background-color:blue;width:100;height:18;overflow:hidden;” onmouseover=”this.style.height=54;” onmouseout=”this.style.height=18;”>aaaaaaa<br>bbbbbbb<br>ccccccc</div>
<select style=”width:200″ ><option>test0<option>test1<option>test2<option>test3</select>
</body>
</html>
分类: 网站