# css樣式設定的語法 <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <TITLE>定義樣式的語法 </TITLE> <STYLE> /* 可以加註解 */ /* 藍色 */ PRE { color : blue; font-style : italic } /* 斜體 */ </STYLE> </HEAD> <BODY> <PRE> 元素名稱 { 屬性1 : 值1; 屬性2 : 值2; ............} 如: H1 { color : red ; font-style : italic; text-align : center } </PRE> <HR> <PRE> 元素名稱1,元素名稱2,.. { 屬性1 : 值1; 屬性2 : 值2; ............} 如: H1,H2 {color : red ; text-align : center } </PRE> <HR> 其中元素名稱稱為 <FONT color="red" size="5">選擇器</FONT><BR> {屬性 : 值 }稱為 <FONT color="red" size="5">規則</FONT> </BODY> </HTML>
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up