本節簡介:本節課主要講解如何操作css文本代碼,以及標簽選擇器的寫法規則。
本節課同學們做的筆記 點擊播放按鈕可自動定位到對應時間進行播放
格式化源代碼-應用源格式 應用注釋-/**/讓代碼不起作用 簡寫不能亂 font:style variant weight size/line-height family
屬性后邊加冒號有提示則是對的 text-align 對其方式 text-decoration:文本修飾none清除樣式 underline下劃線 overline上劃線 line-throngh刪除線
<style></style>在<head>里 h1(標簽樣式名){color:#顏色值;font-size:文字大小 font-weight=粗細值
font-style font-variant font-weight font-size line-height font-family
color front-size frongt-weight frongt-style front-family line-height行高 text-decoration text-align
學代碼 head里面進行CSS編輯---style---h1{color .........so on} /選擇器/
<style></style>對標簽,編輯body標簽中的內容
font-style font-vatiant font-weight font-size line-height font-family
手寫style標簽時,必須要包含在head標簽里寫入
在<font>樣式里面可以簡化代碼,style樣式風格-variant文字的大小寫-weight文字的粗細-size文字的大小-height文字的行高-family字體風格,,,順序是不可以變的,,注意一點:size文字大小和line-height文字的行高必須要用/隔開
手寫style標簽時,必須要包含在head標簽里寫入
簡寫順序:font-style|font-variant|font-weight|font-size|lint-height|font-family
text-decoration(文字裝飾):underline(下劃線);overline(上劃線)