html 可編輯的下拉框


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
            <title>可編輯下拉框</title>
        <meta charset="UTF-8" />
        <style type="text/css">
        /*input css*/
        .iInput{
            position: absolute;
            width: 99px;
            height: 16px;
            left: 1px;
            top: 2px;
            border-bottom: 0px;
            border-right: 0px;
            border-left: 0px;
            border-top: 0px;
        }
        </style>
</head>
<body>

        <div style="position:relative;">
              <select style="width:120px;"
                      onchange="document.getElementById('input').value=this.value">
                <option value="A類">A類</option>
                <option value="B類">B類</option>
                <option value="C類">C類</option>
                <option value="D類">D類</option>
              </select>
              <input id="input" name="input" class="iInput">
        </div>
</body>
</html>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM