张龙-20201028
1,知识总结
选择器(镜子):精确选中要修饰的目标
常用的选择器:0,通用选择器
1,类选择器
2,标签选择器
3,id选择器
4,后代选择器
background-color: red;/*背景颜色*/
background- image: url(../img/timg. jpg);/*背景图片*/
background-position:-120px -100px;/*背景图片平移*/
opacity: 0.5;/*透明度/
background-size:cover;/*背景图片的大小*/
backgzound-attachment:fixed;/*背景图片固定*/
background-size:300px 300px;
background-repeat:repeat-x;/+背景图片平铺*/
background-color:transparent/*背景全透明*/
color:rgb(0-255,0-255,0-255)
color: red;/*修饰字体的颜色*/
font-size:30px/*修饰字体大小*/
font-family:"宋体”/*字体类型*/
font-weight: bold;/+字体加租*/
letter-spacing: 5px;/*字体间距*/
text-align: center;/*对齐方式*/
line-height: 300px;/*行高*/
text-decoration: overline;*//*文本划线*/
text-shadow: 2Px 2px 3px yellow;/*字体阴影*/
个人心得
今天继续学习了HBuilder,学习了各种选择器,以及它们的使用方法。还学习
了好多对文本和文字的修饰,调整方法,以及对图片的修饰方法,感觉对这门课程
越来越感兴趣了,但是也随着课程的深入,学习的东西也越来越多,也感觉越来越
难,好多东西得靠自己努力理解。
近期评论