可写下拉框

来源:互联网 发布:stc单片机选型手册 编辑:程序博客网 时间:2024/04/30 07:35


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>可输入下拉框</title>

</head>
<body>
<form  runat="server">
  <table  width="100%" cellpadding="1" cellspacing="0" border="0">
       <tr>
          <td>&nbsp;BSC/RNC</td>
          <td>
         <!--可输入下拉框 开始-->
          <div   style="position:relative;">  
            <span  style="position:absolute;margin-left:100px;margin-top:1px;width:18px;overflow:hidden;"> 
                 <select   style="width:118px;hight:1px;margin-top:1px;margin-left:-100px"   onchange="this.parentNode.nextSibling.value=this.value">  
                    <option   value='' >请选择或输入</option>
                    <option   value='BSC06'>BSC06</option>
                 </select>
               </span>
            <input id="basestation"   name="basestation" runat="server"   style="margin-top:1px;top:-1px;width:95px;hight:10px;left:0px;" value="请选择或输入"/>
         </div>
        <!--可输入下拉框 结束-->  

          </td>
      </tr>
  </table>
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />

</form>
</body>
</html>