0

我正在尝试显示完整尺寸的背景图像,我正在使用这个jquery 插件 我正在关注这个例子

我的代码是

<!DOCTYPE html >
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>full page image</title>

    </head>

    <body>
        <script type="text/javascript" src="../js/jquery.min.js"></script>
        <script type="text/javascript" src="../js/jquery.backstretch.min.js"></script>
        <script type="text/javascript">
            < script >
                    $.backstretch([
                        "http://media1.santabanta.com/full5/Indian%20%20Celebrities(F)/Gehana%20Vasisth/gehana-vasisth-0a.jpg",
                        "http://media1.santabanta.com/full5/Indian%20%20Celebrities(F)/Disha%20Pandey/disha-pandey-1a.jpg",
                        "E:\wall\beaches-82a.jpg"
                    ], {
                        fade: 750,
                        duration: 4000
                    });
        </script>
    </body>
</html>

上面的代码有什么问题。如何使它工作

4

1 回答 1

0

通过检查浏览器控制台或网络选项卡,确保文件的所有路径都正确。

此外,您需要删除<script>标签,<script type="text/javascript">因为您不能有嵌套<script>标签。然后它应该按预期工作。

于 2014-04-07T06:33:59.543 回答