標籤:
一、滾動字幕標籤<marquee></marquee>
屬性:
scrollamount 指定每次移動的速度,數值越大速度越快
scrolldelay 文字每一次滾動的停頓時間,單位是毫秒。時間越短滾動越快
hspace 指定字幕左右空白地區的大小
vspace 指定字幕上下空白地區的大小
direction 設定文字的捲動方向,left表示向左,right表示向右,up表示往上滾動,down向下
behavior 指定移動方式,scroll表示滾動播出,slide表示滾動到一方後停止,alternate表示滾動到一方後向相反方向滾動。
例:<marquee scrollamount="5" scrolldelay="1" hspace="200" vaspace="50" direction="left" behavior="scroll">具體滾動內容</marquee>
二、表單元素<form></form>
按鈕:<input type="button" value="我是按鈕"/>
重設按鈕:<input type="reset" value="重設"/>
提交按鈕:<input type="submit" value="提交"/>
影像控制:<input type="image" src=""/>
複選框控制項:<input type="checkbox" name="fruit" value ="mango">芒果<br>
<input type="checkbox" name="fruit" value ="apple">蘋果<br>
<input type="checkbox" name="fruit" value ="orange" >桔子<br>
單選框控制項:<select name="fruit" >
<option value="apple">蘋果</option>
<option value="orange">桔子</option>
<option value="mango">芒果</option>
</select>
下拉式功能表
<select name="" >
<option value="">請選擇省份</option>
<option value="1">廣東</option>
<option value="2">廣西</option>
</select>
註:如要多選請加代碼 multiple="multiple"
密碼控制項:<input type="password" />
檔案上傳控制項:<input type="file" />
普通文字框:<input type="text" value="我是文字框" />
<fieldset></fieldset> 控制群組標籤
<fieldset>
<legend>health information</legend>
height: <input type="text" />
weight: <input type="text" />
</fieldset>
20150917-html第二次課