本节简介:背景颜色,图片,对齐方式,是否重复,固定背景等属性设置及编写规则
本节课同学们做的笔记 点击播放按钮可自动定位到对应时间进行播放
line-height行高,增加行高,文字上下居中呈现
背景固定:background:url( image es/pic1.jpg)fixed(图片固定不随滚动条滚动)
backgrounf-postion:水平/垂直。 注意:垂直方向下是正数,上是负数。
背景固定:bachground:url( images/pic1.jpg)fixed(图片固定不随滚动条滚动)
backgrounf-postion:水平/垂直。 注意:垂直方向下是正数,上是负数。
background:#f93; url(images/pic2.jpg no-repeat right botom;) 位移是整体
left center fight top center bottom
.box{ font-size:50px; background:#666;line-height:200px; background-image:url(images/pic2.jpg)}
图片水平方向:left center right;垂直方向:top,center,bottom;
background-position:一个值是水平方向,二个值是垂直方向
background-attachment:fixed 固定背景;不随滚动条而滚动
background-attachment:fixed 固定背景;可以这样写: background:url(images/pic1.jpg) #000 no-repeat 100px 50px
background-position 图片位置background-position: right top右上角;background-position:center bottom 垂直