久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      html下拉列表怎么做的

      在html中,可以利用“<select>”和“<option>”標(biāo)簽來創(chuàng)建下拉列表,select用于搭建下拉列表框架,option用于定義列表項(xiàng);語法“<select><option>列表選項(xiàng)值</option>…</select>”。

      html下拉列表怎么做的

      本教程操作環(huán)境:windows7系統(tǒng)、HTML5版、Dell G3電腦。

      下拉列表是網(wǎng)頁中一種最節(jié)省頁面空間的選擇方式,默認(rèn)狀態(tài)下只顯示一個(gè)選項(xiàng),只有單擊下拉按鈕后才能看到全部的選項(xiàng)。例如,淘寶網(wǎng)首頁的選擇地區(qū)一欄,用到的就是下拉列表,我們來看一下:

      html下拉列表怎么做的

      我們都知道無序列表由 <ul><li> 配合使用,有序列表由 <ol><li> 配合使用。HTML 下拉列表與它們類似,是由 <select><option> 配合使用的。具體語法格式如下:

      <select>     <option></option> </select>

      其中,<select> 標(biāo)簽用來創(chuàng)建一個(gè)下拉列表,<option> 標(biāo)簽表示下拉列表中的每一項(xiàng)(條目)。

      接下來我們看一個(gè)示例:

      <!DOCTYPE html> <html> 	<head> 		<meta charset="utf-8"> 	</head>  	<body> 		<form action="#" method="post"> 			年齡區(qū)間: 			<select> 				<option>18歲以下</option> 				<option>18-28歲</option> 				<option>28-38歲</option> 				<option>38歲以上</option> 			</select> 		</form> 	</body> </html>

      運(yùn)行結(jié)果如圖所示:

      html下拉列表怎么做的

      推薦教程:《html視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號