原本想用这个来摸似,可第一次单击的时候,下拉列表就立即回收了,要再单击一次才行。
<script>
function change(id,selfObj){
var obj = document.getElementById(id);
if(!obj)return;
obj.style.visibility = 'hidden';
obj.style.width='1px';
obj.style.height='1px';
selfObj.style.width = '220px';
selfObj.style.left = obj.style.left;
selfObj.style.top = obj.style.top;
}
</script>
<input type="text" id="test" name="test" value="" style="width:200px">
<select name="test1" style="width:20px" onclick="change('test',this);">
<option>1111111111111111111</option>
<option>1111111111111111111</option>
<option>1111111111111111111</option>
<option>1111111111111111111</option>
</select>
枫岩,能帮我改改么?
系统提示:这是一个从旧版导入的帖子,如有问题请参照原帖(原帖地址见顶楼)。