改成以下这个样子,俺已经尽力了,但还不是很完美!42 和 72 仍然是经验数据,有待高手改进!<html>
<head>
</head>
<body>
<input type="text" id="" value="1" /><br />
<input type="text" id="" value="2" /><br />
<input type="text" id="" value="3" /><br /><table border="0">
<tr>
<td>
<input type="text" style="width: 100px;" name="textfield">
<select name="select" style="position:absolute; left: 42px; clip:rect(0 auto auto 72);" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</td>
</tr>
</table></body>
</html>
<head>
</head>
<body>
<input type="text" id="" value="1" /><br />
<input type="text" id="" value="2" /><br />
<input type="text" id="" value="3" /><br /><table border="0">
<tr>
<td>
<input type="text" style="width: 100px;" name="textfield">
<select name="select" style="position:absolute; left: 42px; clip:rect(0 auto auto 72);" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</td>
</tr>
</table></body>
</html>
解决方案 »
- 传递两个参数到php页面为什么只能成功传递一个?请高手测试~
- js表单提交
- .ascx按钮调用JS中函数 怎么提示不包含定义
- 怎么点击一个链接文字(add)后.链接文字变为(ok).
- -----汉字ansi 与 unicode 转换问题-----
- 怎样取得页面最底部的坐标?
- 一个有三个框架的页面,右边框架弹出的ModalDialog,该ModalDialog里有个IFRAME用来处理提交表单事件,处理完后,如何关闭该ModalDialog并
- 高分请教:如何用javasript打开一个新的ie窗口,要求指定超链接胡“Target”参数,如"_self"
- 一个很菜的问题:怎样在用户点击超连接或直接关闭浏览器时跳出脚本页面?还有……
- 怎么得到后退的地址?
- 一小段javascript的代码在IE6中好使,在IE7中就不好使了。请帮我解决一下。
- 问个简单的正则式、子串查找 问题
<html>
<head>
</head>
<body>
<input type="text" id="" value="1" /><br />
<input type="text" id="" value="2" /><br />
<input type="text" id="" value="3" /><br /><table border="1">
<tr>
<td style="width:200">
<span>
<input type="text" style="width: 100px;" name="textfield">
<span style="margin-top:1;width: 120px;position:absolute; left: 40px;top:auto;clip:rect(0 auto auto 72);">
<select name="select" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</span>
</td>
<td> </td>
</tr>
<tr>
<td>
<span>
<input type="text" style="width: 100px;" name="textfield">
<span style="margin-top:1;width: 120px;position:absolute; left: 40px;top:auto;clip:rect(0 auto auto 72);">
<select name="select" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</span>
</td>
<td style="width:200"><span>
<input type="text" style="width: 100px;" name="textfield">
<span style="margin-top:1;width: 120px;position:absolute; left: 240px;top:auto;clip:rect(0 auto auto 72);">
<select name="select" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</span></td>
</tr>
</table></body>
<html>
<head>
</head>
<body>
<input type="text" id="" value="1" /><br />
<input type="text" id="" value="2" /><br />
<input type="text" id="" value="3" /><br /><table border="1">
<tr>
<td style="width:200">
<span>
<input type="text" style="width: 100px;" name="textfield">
<span style="margin-left:-80;margin-top:1;width: 120px;position:absolute; left: auto;top:auto;clip:rect(0 auto auto 72);">
<select name="select" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</span>
</td>
<td> </td>
</tr>
<tr>
<td>
<span>
<input type="text" style="width: 100px;" name="textfield">
<span style="margin-left:-80;margin-top:1;width: 120px;position:absolute; left: auto;top:auto;clip:rect(0 auto auto 72);">
<select name="select" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</span>
</td>
<td style="width:200">
<span>
<input type="text" style="width: 100px;" name="textfield">
<span style="margin-left:-80;margin-top:1;width: 120px;position:absolute; left: auto;top:auto;clip:rect(0 auto auto 72);">
<select name="select" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</span>
</td>
</tr>
</table>
<span>
<input type="text" style="width: 100px;" name="textfield">
<span style="margin-left:-80;margin-top:1;width: 120px;position:absolute; left: auto;top:auto;clip:rect(0 auto auto 72);">
<select name="select" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</span>
<span>
<input type="text" style="width: 100px;" name="textfield">
<span style="margin-left:-80;margin-top:1;width: 120px;position:absolute; left: auto;top:auto;clip:rect(0 auto auto 72);">
<select name="select" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</span>
<br><br> sssss<span>
<input type="text" style="width: 100px;" name="textfield">
<span style="margin-left:-80;margin-top:1;width: 120px;position:absolute; left: auto;top:auto;clip:rect(0 auto auto 72);">
<select name="select" id="select" onchange="textfield.value=select.value;textfield.select()">
<option value="天安门">天安门</option>
<option value="故宫">故宫</option>
<option value="慕田峪长城">慕田峪长城</option>
</select>
</span>
</body>
改为
<option value="慕田峪长城">慕田峪长城很长很长滴</option>