div背景图占满

<div class="mobile"></div>
1 .mobile{
2     width: 360px;
3     height: 710px;
4     background: url(/static/backend/image/bgiphone2.jpg);
5     background-repeat: no-repeat;
6     background-size: 100% 100%;
7     margin: auto;
8 }

 

posted @ 2020-08-13 08:52  糖糖Y  阅读(250)  评论(0编辑  收藏  举报