use*_*665 8 jquery jquery-backstretch
嗨,在过去5天尝试使用后伸时没有加载图像的问题.检查我的所有文件路径,使用正确的库插件,检查标记的顺序,检查脚本的顺序.有任何想法吗?请帮忙!非常感谢 - 并为成为新手而道歉.
这是我的代码:
<!DOCTYPE html>
<html lang="en">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head profile="http://gmpg.org/xfn/11">
<link rel="stylesheet" href="new_website/new_site_css/stylesheet2.css" type="text/css" media="screen" title="CSS" charset="utf-8" />
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
</head>
<body>
<script type="text/javascript"
<script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript"src="new_website/jquery.backstretch.js"></script>
<script>
$.backstretch([
"new_website/images/2.png",
"new_website/images/3.png",
"new_website/images/4.png"
], {duration: 4000, fade: 750});
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我没有宣布任何css,仅供参考.非常感谢!
我认为要初始化幻灯片,您需要声明一个元素。
$(".foo").backstretch([
$(".foo").backstretch([
"path/to/image.jpg",
"path/to/image2.jpg",
"path/to/image3.jpg"
], {duration: 4000});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1211 次 |
| 最近记录: |