<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- <link rel="stylesheet" type="text/css" href="style.css"> -->
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<!-- 1,Div背景图片 -->
<div></div>
</body>
</html>
* {
margin: 0;
padding: 0;
}
/*p {
width: 300px;
height: 40px;
line-height: 20px;
border: 1px solid black;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}*/
div{
width: 200px;
height: 200px;
border: 1px solid black;
background-image: url(fb.jpeg);
background-size: 100px 100px;
background-repeat: no-repeat;
/*background-position: center center;*/
background-position: 50% 50%;
}