文本域:
taxtarea placeholder="請(qǐng)輸入你的建議" 這個(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表單提交會(huì)觸發(fā)頁(yè)面跳轉(zhuǎn) -->
<!-- action 指定表單提交路徑 -->
<form action=" ">
<div>
<p>
<input type="text" name="word">
</p>
</div>
<!-- input type為submit :提交按鈕 -->
<input type="submit" value="登錄">
2019-04-09css
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。