我写了个<span id="sel" onclick="oLayer.style.display='none'"></span><button style="font-family:Arial;font-size:10px;width:22px;height:18px;margin-top:4px;" onclick="putValue()">Go</button>
<div id="oLayer" style="position:absolute;left:30;top:60;z-index:2;background:green;width:120px;height:70px;display:inline">
<select id="1">
<option value="1">1</option>
<option value="1">2</option>
<option value="1">3</option>
</select>
</div>
问题是点的时候是可以隐藏,但是不能将其恢复.郁闷
<div id="oLayer" style="position:absolute;left:30;top:60;z-index:2;background:green;width:120px;height:70px;display:inline">
<select id="1">
<option value="1">1</option>
<option value="1">2</option>
<option value="1">3</option>
</select>
</div>
问题是点的时候是可以隐藏,但是不能将其恢复.郁闷
解决方案 »
- 浏览器变化 如何获得 页面div的 大小呢 通过js 急呀求帮助
- 老少爷们都来看下Root cause of ServletException java.lang.NullPointerExcepetion
- 不管在哪个省访问www.163.com/index.html 都能显示当地的新闻。是如何实现的?
- 求助,急,在线等!!!
- 如何在JAVASCRIPT中实现本页面一个表单的提交?
- 如何将这段vbscript代码改为javascript?
- 咔咔~发了两天烧,梅花雨结婚了?恭喜一下!领分了(人家结婚,x分不吉利)
- javascript中如何根据控件的Value来判断是什么类型的控件.
- js弹出遮罩层,如何使底部的页面不滚动?
- 瞬间惊呆了看到这图。
- 怎么控制动态插入的新行的格式
- asp中怎样实现下拉列表可以输入,并能提示
<iframe style="position:absolute;z-index:-1;width:100%;height:100%;top:0;left:0;scrolling:no;" frameborder="0" src="about:blank"></iframe>
<div style="background-color:#cccccc;">aaaaaaa<br>bbbbbbb<br>ccccccc<br>ccccccc<br>ccccccc<br>ccccccc</div>
</div>
<select style="width:200" ><option>test0<option>test1<option>test2<option>test3</select>JK写的能挡住下拉的层
2.div设置zindex显示优先于iframe,iframe可覆盖select(所以可生成一个iframe将其的高宽与你生成的div高宽相同即可)