带输入框的下拉菜单 [英] Drop down menu with input box
本文介绍了带输入框的下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用css和html使带有输入框的下拉opton像此链接图片一样? https://i.stack.imgur.com/W6SEN.jpg
How can i make a drop down opton with a input box using css and html .as like this link picture?https://i.stack.imgur.com/W6SEN.jpg
推荐答案
修改为您的需要
<!DOCTYPE html>
<html lang="en">
<body>
<h2>This is what you want </h2>
<center>
<select style="height: 36px; border-right: 4px solid; width: 55px; background: transparent;">
<option value="India">+91</option>
<option value="India">+92</option>
<option value="India">+93</option>
<option value="India">+94</option>
<option value="India">+01</option>
</select>
<input type="text" style="height: 30px; margin-left: -4px; padding-left: 5px;">
</center>
</body>
</html>
这篇关于带输入框的下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文