插入背景图片: background-image:url(图片路径)
background-repeat: no-repeat; 图片不平铺,只会显示一次
background-repeat:repeat-x; 图片只沿水平方向平铺
background-repeat:repeat-y; 图片只沿垂直方向平铺
background-repeat:repeat; 图片沿水平和垂直方向平铺
background-position:100% 100%;使用百分比表示背景的位置
background-position:left bottom; 水平方向的关键词有(left /center/right)
垂直方向的关键词有(top center bottom)如果两个方向的关键词都是center 可以合二为一的写 只写一个
x轴的位置属性 和y轴的位置属性也可以分开写,如下:
background-position:left;
background-position:bottom;
缩写为:background: red url(./pic1.png) 30px 50px no-repeat; (顺序可以改变,除了x轴和y轴)
修改背景图的大小:background-size:100px 200px;
a:hover{cursor:pointer; }鼠标放上去的时候有小手的移动鼠标
a:hover{cursor:all-scroll}鼠标放上去的时候有十字箭头鼠标
4643

被折叠的 条评论
为什么被折叠?



