<!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">
<title>Document</title>
</head>
<style type="text/css">
html,body{
margin:0;
/* 无滚动条 */
height:100%;
}
body{
background-image: url(img/1.gif);
/* 不平铺 */
/* background-repeat: no-repeat; */
/* background-position: center center;//bottom,底;水平居中,垂直居中=中心 */
}
</style>
<body>
</body>
</html>
CSS练习(6)——背景图
猜你喜欢
转载自blog.csdn.net/qq_34243694/article/details/92830511
今日推荐
周排行