本节简介:本节课主要介绍背景属性在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;设置背景位置,,