这个下拉框在ie6怎么控制可输

a2048 2013-12-11 09:55:31
<div style="position:relative;">
<select style="width:120px;" onchange="document.getElementById('input3').value=this.value">
<option value="A类">A类</option>
<option value="B类">B类</option>
<option value="C类">C类</option>
<option value="D类">D类</option>
</select>
<input id="input3" name="input3" style="position:absolute;width:99px;height:16px;left:1px;top:2px;border:none;">
</div>
以上代码可以在ie9.0下实现可输入的下拉框,但在ie6下时输入的文本框就没有了 ,怎么弄才你能可以在ie6下可以用,要简单的。
...全文
94 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
舒克是我 2013-12-11
  • 打赏
  • 举报
回复
 .my_select {
	position:relative;
	margin:100px;
	font-size:12px;
}
.my_select_select {
	position:absolute; left:0; top:0; *top:1px;
	width:100px;
	clip:rect(0 auto auto 80px);
	height:22px; line-height:18px;
	background:#09C;
}
.my_select_text {
	width:80px; *height:16px; *line-height:16px;
}[code=html]<div class="my_select">
    <select class="my_select_select" id="my_select_select02"  onchange="document.getElementById('my_select_text02').value=this.value">
        <option value="1_1" selected>1_1</option>
        <option value="1_2">1_2</option>
        <option value="1_3">1_3</option>
    </select>
    <input class="my_select_text" id="my_select_text02" />
</div>
[/code]

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧