这在本地有效
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;
}
当我在SP 2013的服务器上编辑母版页html文件时,它没有显示(尽管我所有其他替代CSS都可以使用...)。您看不到阴暗的背景。
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;
}
SP 2013不允许背景图像吗?
谢谢
尝试将图像上传到SharePoint网站中的“网站资产”,然后编辑css中的链接以指向该位置。它应该修复它。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句