문제

This works locally

body { 
    /*background: Gainsboro;*/
    background: url(../dt_images/bg.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

enter image description here

When I edit the master page html file on the server for SP 2013, it doesn't show (all of my other override CSS works though...). You cannot see the cloudy background.

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

enter image description here

Does SP 2013 not allow background images?

Thanks

도움이 되었습니까?

해결책

Try uploading the image to Site Assets in your SharePoint site and edit the link in css to point to that location. It should fix it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top