CSS背景图像在SP 2013中不起作用,但在本地起作用
这在本地有效CSS背景图像在SP 2013中不起作用,但在本地起作用,css,sharepoint-2013,sharepoint-designer,Css,Sharepoint 2013,Sharepoint Designer,这在本地有效 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; }
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中编辑指向该位置的链接。它应该会修复它。好吧,现在它好像正在加载,但只需一秒钟。。。然后它似乎消失了,或者被白色SP标准背景色覆盖。如果添加“!important”?“background:url(../dt_images/bg.jpg)!important no repeat center fixed;”会发生什么。需要
!重要的代码>