关于style='position:absolute'的问题 忘了加一点说明,不要用div和span! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这是因为select 的z-index值比较高的缘故,一般 的控件都挡不住select 这个不知道如何用我用了<select name="myselect" style="left:450px; top:89px; width:115px; height:18px; z-index:2;"></select><input type="text" name="test" style="position:absolute; left:50px; top:20px; width:95px; height:18px; z-index:1;">但无效 同意richardluopeng(罗罗),select控件的z-index值是最高的,只能用层来模拟select了 看来只能用这种东西啦?<head><style>.cls1 { position:absolute; left:250px; top:89px; width:216px; height:72px; z-index:1; }.cls2 { position:absolute; left:250px; top:89px; width:95px; height:18px; z-index:2 }input { font-size: 12px; padding-top: 2px; padding-left: 2px;width:127;}</style></head><script language=javascript>//****************************************************************************************************************************** function addOption(pos){ if (event.keyCode==13&&event.ctrlKey){ var select_obj = document.getElementById("myselect"); var text_value = document.getElementById("test").value; var the_option= new Option(text_value,text_value); select_obj.add(the_option); select_obj.selectedIndex = select_obj.options.length-1 } }//******************************************************************************************************************************</script><div class="cls1" style="clip: rect(3 280 21 110)"> <select name="myselect" style="width:127" onchange="document.getElementById('test').value=this.value"> </select></div><div class="cls2"><input type="text" name="test" onkeydown="addOption()" size="20" style="width: 127; height: 23"></div> JQ怎么把HTML中的table内的内容导出到excel【急】 js 删除checkbox 求助 怎么触发 ctrl f 页面查找? 并传值? 我提交评论后由于评论在最下边,提交之后页面,页面刷新之后,如何滚动到我发表的评论的位置那, 简单的JS写COOKIE问题 在线等 谢谢啦 `! 帮忙看下! 动态(随意)地在背景图上贴图片 这个是什么错啊 急!!急!! 为什么会多了两个undefined???急急急(在线等待) 在JAVASCRIPT里有和LEFT,RIGHT,MID等相对就在的涵数吗(变量中取某一段) 怎样才能让它变成手形? ondrag事件
<select name="myselect" style="left:450px; top:89px; width:115px; height:18px; z-index:2;">
</select>
<input type="text" name="test" style="position:absolute; left:50px; top:20px; width:95px; height:18px; z-index:1;">
但无效
<head>
<style>
.cls1 { position:absolute; left:250px; top:89px; width:216px; height:72px; z-index:1; }
.cls2 { position:absolute; left:250px; top:89px; width:95px; height:18px; z-index:2 }
input { font-size: 12px; padding-top: 2px; padding-left: 2px;width:127;}
</style>
</head>
<script language=javascript>
//******************************************************************************************************************************
function addOption(pos){
if (event.keyCode==13&&event.ctrlKey){
var select_obj = document.getElementById("myselect");
var text_value = document.getElementById("test").value;
var the_option= new Option(text_value,text_value);
select_obj.add(the_option);
select_obj.selectedIndex = select_obj.options.length-1
}
}
//******************************************************************************************************************************
</script>
<div class="cls1" style="clip: rect(3 280 21 110)">
<select name="myselect" style="width:127" onchange="document.getElementById('test').value=this.value">
</select>
</div>
<div class="cls2">
<input type="text" name="test" onkeydown="addOption()" size="20" style="width: 127; height: 23">
</div>