本节简介:背景颜色,图片,对齐方式,是否重复,固定背景等属性设置及编写规则
本节课同学们做的笔记 点击播放按钮可自动定位到对应时间进行播放
background-image: url(images/pic1.jpg) ; background-repeat: repeat-x; 横铺图片;
background-attachment:fixed 固定背景
background-attachment:fixed 可以简写
background:#000 url(images/pic1.jpg) no-repeat 100px 50px
background-position:100px 100px
background-position:right top
background-repeat:repeat/repeat-x
background-repeat:no-repeat
background-image:url(images/pic1.jpg)
<style>background:#颜色 url(图片地址) no-repeat right bottom;</style> fixed 固定背景图 backgroudn-position图片定位 backgroud-image 背景图片 backgroud-repeat 背景重复 no-repeat 不重复 backgroud-position :背景位置 tbackop :上面 bottom :下面 backgroud attachmenta: fixed固定背景
<style>background:#颜色 url(图片地址) no-repeat right bottom;</style>
backgroud-image 背景图片 backgroud-repeat 背景重复 no-repeat 不重复 backgroud-position :背景位置 tbackop :上面 bottom :下面 backgroud attachmenta: fixed固定背景