css with background image without repeating the image

后端 未结 4 1042
轻奢々
轻奢々 2020-12-28 16:08

I have a column (lets assume the width is 40px) and there I have some rows. The height of the rows depends on the length of text (if the text is long then there is a break l

4条回答
  •  囚心锁ツ
    2020-12-28 16:11

    body {
        background: url(images/image_name.jpg) no-repeat center center fixed; 
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
    

    Here is a good solution to get your image to cover the full area of the web app perfectly

提交回复
热议问题