div被select遮挡的解决方法——脚本之家
(this.nextsibling.offsetwidth);height:expression
(this.nextsibling.offsetheight);top:expression(this.nextsibling.offsettop);left:expression
(this.nextsibling.offsetleft); frameborder=0 >
color:blue;width:100;height:18;overflow:hidden; >aaaaaaa
bbbbbbb
ccccccc
test0test1test2test3
div被select挡住,是一个比较常见的问题。
有的朋友通过把div的内容放入iframe或object里来解决。
可惜这样会破坏页面的结构,互动性不大好。
这里采用的方法是:
虽说div直接盖不住select
但是div可以盖iframe,而iframe可以盖select,
所以,把一个iframe来当作div的底,
这个div就可以盖住select了.