How to remove white border from blur background image

前端 未结 9 704
傲寒
傲寒 2020-12-28 17:23

How to remove the white blur border from the background image.

CSS, i tried adding marg

9条回答
  •  自闭症患者
    2020-12-28 18:19

    I have added overflow, padding and even margin, but still the problem not solved. So i tried to give the image tag between div. Problem solved.

    css

     .background-image {
      background: no-repeat center center fixed; 
      background-size: cover;
      display: block;
      left: -5px;
      top:-5px;
      bottom:-5px;
      position: fixed;
      right: -5px;
      z-index: 1;
      -webkit-filter: blur(5px);
      -moz-filter: blur(5px);
      -o-filter: blur(5px);
      -ms-filter: blur(5px);
      filter: blur(5px);
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      margin:-5px;
    
     }
    

    js fiddle

    http://jsfiddle.net/2pgdttLh/

提交回复
热议问题