Background image fill up/down in CSS

This question already has an answer here:

  • Stretch and scale a CSS image in the background - with CSS only 18 answers

  • -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    

    来自CSS技巧的文档:http://css-tricks.com/perfect-full-page-background-image/

    链接地址: http://www.djcxy.com/p/89216.html

    上一篇: 你可以在html中添加背景图片吗?

    下一篇: 背景图像在CSS中填充/放下