https:// css后台大小不起作用

时间:2017-04-03 04:06:55

标签: javascript html css

我使用以下html代码查看网页。只要从http或ftp文件夹路径查看网页,代码就可以工作。但我从https://路径使用它的运动它停止工作。 SharePoint网站用于将网页启动为https:// site。

请注意,除了此特定代码行document.body.style.backgroundSize = "100% 100%";

之外,整个页面及其所有组件都有效
<!DOCTYPE html>
<html>
<head>
</head>
<body>

<script>
var myVar = setInterval(myTimer, 1000);

function myTimer() {
    var d = new Date();

    var hour = new Date().getHours();
    var minute = new Date().getMinutes(); 
    var greeting;
    if (( hour == 9 || hour == 11 || hour == 13 || hour == 15 || hour == 17 ) && ( minute <= 20 )) {
        document.body.style.backgroundImage = "url('file://ourfolder/Images/Image_MFR.jpeg')";
        document.body.style.backgroundAttachment = "fixed"; 
        document.body.style.backgroundSize = "100% 100%";   
    } else {
        document.body.style.backgroundImage = "url('file://ourfolder/Images/Image_ICG1.jpeg')";
        document.body.style.backgroundAttachment = "fixed";
        document.body.style.backgroundSize = "100% 100%";
    }
}
</script>

<meta http-equiv='refresh' content="60;  url='file://otshare.eur.citi.net@SSL/DavWWWRoot/sites/GIDABPR/CSSBPR/RICA/Chennai/RICA_CH.html' "/>

</body>
</html>

经过大量的研究并检查了很多网站,因为我使用记事本来构建这些网页,我无法获得太多帮助。

0 个答案:

没有答案