本節簡介:本節課主要介紹css中其他的一些樣式和更多的選擇器,以及其他選擇器的應用和注意事項。
本節課同學們做的筆記 點擊播放按鈕可自動定位到對應時間進行播放
1.標簽選擇器h1{} 2.class選擇器.box{} 3.后代選擇器.out box{} 4.偽類選擇器a:hove .box:hove 5.id選擇器
list-style-image:(列表圖像) 圖標文字有間隔還可以 例:.list li{backgroud:(圖片) no-repeat ;padding-left:10px;;}
border-radius邊框半徑(圓角)如大小300px ,四個角設150是個圓
1.標簽選擇器 h1{} 2.class選擇器 .box{} 3.后代選擇器 .out .box{} 4.偽類選擇器 a:hover .box:hover 5.id選擇器
background url no-repeat left center
background: url(images/ ) no repeat
DWcc2018 background-repeat no-repeat
id選擇器(#+名稱):在一個頁面中只能使用一次id;
id選擇器,class選擇器是點,id是#,id不重復,身份證號,在當前頁面中只能使用一次;h1和h2標簽之間有空隙,設置外邊距margin:0;其他標簽都設置margin,list-style-position:inside;第六個選擇器:通用選擇器,*{margin:0;padding:0;}
list-style-type:none; list-style-image:url 另一種方法: background:urI(images/*.png) no-repeat left center; padding-left:10px;