Drop down menu with input box

天涯浪子 提交于 2019-12-13 08:59:42

问题


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


回答1:


Modify as your need

<!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>


来源:https://stackoverflow.com/questions/47299983/drop-down-menu-with-input-box

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!