本文摘自PHP中文网,作者php中世界最好的语言,侵删。
这次给大家带来怎么实现html 可输入下拉菜单,实现html 可输入下拉菜单的注意事项有哪些,下面就是实战案例,一起来看一下。1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <html>
<head>
<meta http-equiv= "Content-Type" content= "text/html; charset=UTF-8" />
</head>
<body>
<?php
echo '
<form name= "DDForm" method= "GET" action= "" >
<div style= "position:relative;" >
<span style= "margin-left:100px;width:18px;overflow:hidden;" >
<select style= "width:180px;margin-left:-100px" onchange= "this.parentNode.nextSibling.value=this.value" name= "hh" >
<option value= "汽车" >汽车 </option>
<option value= "火车" > 火车 </option>
<option value= "飞机" > 飞机 </option>
</select>
</span><input name= "box" style= "width:160px;position:absolute;left:0px;" >
<input value= "提交" name= "submit" type= "submit" />
</div>
</form>';
$aa = $_GET [ 'hh' ]. "111" ;
$bb = $_GET [ 'box' ]. "222" ;
echo $aa ;
echo "</br>" ;
echo $bb ;
?>
</body>
</html>
|
要获得可输入下拉菜单的值,只要获得输入框的值即可。
注意:
阅读剩余部分
相关阅读 >>
html是一种什么
html如何使用hidden隐藏标签
html中hr是什么意思
html啥意思
html禁止清除input文本输入缓存的两种方法
html中col标签中的汉字如何居中?html col标签的基本使用(内有实例)
html怎么改网页标题
浅谈html里的布局对于seo的影响
html怎么使文本框不可编辑
html 元素
更多相关阅读请进入《下拉菜单》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » 怎么实现html 可输入下拉菜单