标签:image position 标签设置 color mic css 全屏 图片 bsp
背景图
<div class="xxx" style="background-image:url(‘xxx.jpg‘) ;background-repeat:no-repeat; background-size:100%;"> </div>
通过Img标签设置
html:
<body > <img class="img" src="img/backg.jpg" alt="背景"> </body>
css:
.img{ position: absolute; height: 100%; width: 100%; }
标签:image position 标签设置 color mic css 全屏 图片 bsp
原文地址:https://www.cnblogs.com/expedition/p/10909299.html