<body>
<div>
My name is 叶落森<br>
My name is 叶落森<br>
My name is 叶落森<br>
My name is 叶落森<br>
My name is 叶落森<br>
</div>
</body>
cover案例
body
{
background:url(img_flwr.gif);
background-size:cover;
background-repeat:no-repeat;
}
contain案例
body
{
background:url(img_flwr.gif);
background-size:contain;
background-repeat:no-repeat;
}
length案例
body
{
background:url(img_flwr.gif);
background-size:100px 50px;
background-repeat:no-repeat;
}
percentage案例
body
{
background:url(img_flwr.gif);
background-size:100% 100%;
background-repeat:no-repeat;
}
body
{
background:url(img_flwr.gif);
background-size:100% auto;
background-repeat:no-repeat;
}