2019-04-09css

文本域:
taxtarea placeholder="請輸入你的建議"   這個(gè)文本域可以設(shè)置寬高。

選擇框:
    定義下拉選擇框:
<select>
          <option>上海</option>
          <option>背景</option>
          <option>杭州</option>
         <!--selected設(shè)置默認(rèn)選項(xiàng) -->
          <option selected>鄭州</option>
</select>
單選&復(fù)選默認(rèn)選項(xiàng)
        單選默認(rèn)選項(xiàng)
          <!-- checked默認(rèn)選項(xiàng) -->
    <input type="radio" name="sex">男
    <input type="radio" name="sex">女
    <input type="radio" name="sex" checked>待定
         復(fù)選默認(rèn)選項(xiàng)
        <input type="checkbox" checked>
    <input type="checkbox" checked>
    <input type="checkbox" checked>
    <input type="checkbox">
 form表單提交
<!-- form表單提交會觸發(fā)頁面跳轉(zhuǎn) -->
<!-- action 指定表單提交路徑 -->
 <form action=" ">
              <div>
            <p>
                <input type="text" name="word">
            </p>
        </div>
         <!-- input type為submit :提交按鈕 -->
    <input type="submit" value="登錄">
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容