如何使用css和html输入框下拉opton。如此链接图片?https://i.stack.imgur.com/W6SEN.jpg
答案 0 :(得分:0)
根据需要进行修改
<!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>