【问题标题】:why wont my background load?为什么我的后台加载不出来?
【发布时间】:2013-12-28 17:18:43
【问题描述】:

突然之间,我的背景图片无法加载。 所以我创建了一个测试站点。 它的基本。 背景显示在我的本地主机上,但当我将其上传到 Dreamhost 时却没有。 我无法理解问题是什么。有人能解释一下吗? HTML:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>test</title>
<link href="test.css" rel="stylesheet" type="text/css">
</head>

<body>

<h1>TEST TEST TEST</h1>

</body>
</html>

CSS:

body {
    background:url(images/redeemer.jpg) no-repeat center center fixed;
    }

这是链接;

www.eddiemilladesign.com

我能理解问题出在哪里,我一遍又一遍地使用这种方法,从来没有遇到过问题。 请帮忙。 -艾迪

【问题讨论】:

    标签: image background background-image


    【解决方案1】:

    如果您使用 Chrome 并按 Alt + Ctrl + J(打开控制台),您会看到浏览器收到 403 禁止错误:

    Failed to load resource: the server responded with a status of 403 (Forbidden)

    确保网络服务器在具有访问后台文件所需权限的帐户下运行。

    【讨论】:

    • 谢谢!有效!我更改了权限(在cyberduck中),它现在正在运行....
    • 好。仅供参考,最好使用 upvote/mark 作为答案,而不是使用 cmets 来感谢人们。
    猜你喜欢
    • 2016-04-22
    • 2021-09-26
    • 2021-02-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-20
    • 2021-10-16
    相关资源
    最近更新 更多