background-image:url();一般情况下会复制
background-repeat:no-repeat 不复制
background-repeat:repeat -x 表示仅仅x轴平移
background-repeat:repeat -y 表示仅仅y轴平移
bcckground-position:50px 50px;位置 精灵图 雪碧图 .png
<!DOCTYPE html>
<html>
<head>
<title>背景属性</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./css/beijingshuxing.css">
</head>
<body>
<div id="msg"></div>
</body>
</html>
#msg{
width: 100%;
height: 1200px;
background-image: url(../img/2.png);
background-repeat: no-repeat;
background-repeat: repeat-x;
background-position: 80px 80px;
}




1256

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



