<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html?xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>
?<meta?name="viewport"?content="width=device-width,initial-scale=1,user-scalable=no"/>
<title>無標(biāo)題文檔</title>
</head>
????<link?rel="stylesheet"?src=
??https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.7.4/jquery.fullPage.css?/>
?<script?src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.7.4/jquery.fullPage.js"></script>
?<script?src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.7.4/vendors/jquery.easings.min.js"></script>
?<script?src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.7.4/jquery.fullPage.min.js"></script>
?<script?>
$(document).ready(function()?{
????$('#fullpage').fullpage();
????????
});
</script>
<body>
?<div?id="fullpage">
??<div?class="section">這是第一屏</div>
???<div?class="section">這是第二屏</div>
????<div?class="section">這是第三屏</div>
?????<div?class="section">這是第四屏</div>
?</div>
</body>
</html>
2015-11-08
2個問題?
1、link 標(biāo)簽的路徑地址屬性是 href 不是 src
2、你的頁面沒有引入jquery文件 ?jquery.fullPage是依賴 jquery的。??
2015-11-14
可是我復(fù)制了你的代碼。還是沒顯示。。。