--fonts--
★改變字體 font-family : 字體A(理想字體)、字體B(代替A)、字體C;
★洗掉瀏覽器的預設格式
font-size:100%
font:inherit
★改變字體大小 font-size
☆可用pixel(px)、百分比(%)、ems
★字體厚度 font-weight
☆可用normal、bold、bolder、light、lighter
☆可直接用數字(100,200...900)
★copyright標誌: ©
★font-style
☆可用normal、italic(斜體)、oblique(傾斜??)、inherit(繼承parent)
★text-transform
☆可用uppercase、lowercase
★行距 line-height
--forms--
★建一個表單<form>內容</form>
★文字標籤<label>文字內容</label>
★<input type="text"> 可以填入文字的區域
★<input type="submit" value="click to submit"> 提交按鈕
☆value是按鈕的文字內容
★<input type="radio"> 圓形選項(單選)
★<input type="checkbox"> 方形選項
★<input type="file"> 選擇檔案
★<input type="password"> 填入密碼的區域
★for與id:label用for,input用id,同項目名稱一樣(穎:不知道意義何在QAQ")
★<textarea></textarea> 填入文字的區域,比input大
★讓label、input分行
label,input{
display:block;
★attribute selector
EX:
input[type=submit]{
}
}
★改變字體 font-family : 字體A(理想字體)、字體B(代替A)、字體C;
★洗掉瀏覽器的預設格式
font-size:100%
font:inherit
★改變字體大小 font-size
☆可用pixel(px)、百分比(%)、ems
★字體厚度 font-weight
☆可用normal、bold、bolder、light、lighter
☆可直接用數字(100,200...900)
★copyright標誌: ©
★font-style
☆可用normal、italic(斜體)、oblique(傾斜??)、inherit(繼承parent)
★text-transform
☆可用uppercase、lowercase
★行距 line-height
--forms--
★建一個表單<form>內容</form>
★文字標籤<label>文字內容</label>
★<input type="text"> 可以填入文字的區域
★<input type="submit" value="click to submit"> 提交按鈕
☆value是按鈕的文字內容
★<input type="radio"> 圓形選項(單選)
★<input type="checkbox"> 方形選項
★<input type="file"> 選擇檔案
★<input type="password"> 填入密碼的區域
★for與id:label用for,input用id,同項目名稱一樣(穎:不知道意義何在QAQ")
★<textarea></textarea> 填入文字的區域,比input大
★讓label、input分行
label,input{
display:block;
★attribute selector
EX:
input[type=submit]{
}
}