<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>背景</title>
<style type="text/css">
#img{
width: 990px;
height: 980px;
/*!*!*设置背景颜色*!*!*/
/*!*background-color: yellowgreen;*!*/
/*!*!*设置背景图像*!*!*/
/*!*background-image: url(./images/c.jpeg);*!*/
/*!*background-repeat: no-repeat;*!*/
/*!*background-position: -50px -20px;*!*/
/*!*简写*!*/
/*background: url(./images/c.jpeg) no-repeat 10px 20px;*/
background: red;
padding-top:10px;
border:5px solid black;
}
</style>
</head>
<body>
<div id="img"></div>
</body>
</html>