本節簡介:本節課主要介紹背景屬性在CSS中的作用,了解背景屬性可以完成的功能,以及class類選擇器的功能與應用方法。
本節課同學們做的筆記 點擊播放按鈕可自動定位到對應時間進行播放
gradient 漸變屬性 背景簡寫可以調整 :background: left bottom url(images/1.jpg) no-repeat #0c6 fixed css樣式:.類標簽,設置屬性再指定標簽
repeat 重復 gradient 漸變 background position 移動圖像位置 background attachment 背景固定
gradient加漸變;background-size定義背景圖像大小
背景顏色被背景圖片遮擋;background-repeat設置背景重復與不重復;position圖像偏移位置設置;background-attachment設置背景是否根據滾動條來滾動,fixed背景固定;backgroun-image設置背景圖像
background-attachment:fixed (固定在瀏覽器的同一個位置);設置背景滾動模式,,background-gradient:(設置背景圖像漸變),,29:25背景圖像顏色和背景色共同存在一起,,35:00:(. box代碼使用介紹)
background-attachment:fixed (固定在瀏覽器的同一個位置);設置背景滾動模式,,background-gradient:(設置背景圖像漸變),,29:25背景圖像顏色和背景色共同存在一起,,35:00:(. box代碼使用介紹)
background-repeat:repeat-x;水平平鋪:設置背景重復,,background-position:25px; top;設置背景位置,,