分享本站背景圖片代碼,需要的可以圍觀
詳細信息
首先在你的公共文件里面添加以下代碼:body{background: url('背景/images/bg.png') top center fixed;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;} .bg-fixed{width:100%;height:100%;position:fixed;top:0;left:0;z-index:-998;background:url('背景/images/bg-fixed.png') repeat}最后在你的底部文件添加背景代碼:
<div class="bg-fixed">