<head>
<style>
#div1{
width:500px;
height:500px;
background-color:#FF9;
background-image:url(img/1.jpg);
background-position: 20px top;
background-repeat:repeat-x;
/*颜色 red 十六进制#fff rgb()
position x y
left top
center center
right bottom
repeat-x 水平重复
repeat-y 垂直重复
不重复
background:200px 0px url(img/1.jpg) no-repeat gray ; */
</style>
<title>无标题文档</title>
</head>
<body>
<div id="div1"></div>
</body>
</html>