Responsive background image in div full width

前端 未结 3 476
南方客
南方客 2021-01-31 00:21

I\'m trying to figure out how to make a background-image in a div full width and responsive. The background-image is expanding across the width of the page (and is responsive),

3条回答
  •  醉梦人生
    2021-01-31 00:51

    I also tried this style for ionic hybrid app background. this is also having style for background blur effect.

    .bg-image {
       position: absolute;
       background: url(../img/bglogin.jpg) no-repeat;
       height: 100%;
       width: 100%;
       background-size: cover;
       bottom: 0px;
       margin: 0 auto;
       background-position: 50%;
    
    
      -webkit-filter: blur(5px);
      -moz-filter: blur(5px);
      -o-filter: blur(5px);
      -ms-filter: blur(5px);
      filter: blur(5px);
    

    }

提交回复
热议问题