本节简介:本节课主要介绍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;