css设置背景图自适应填充整个屏幕

直接看css样式:

<style>
 body {
            background: url(img/background_login.jpg);
            background-position: center center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-size: cover;
        }
style>

你可能感兴趣的:(html)