newsudhc3634140
2016-09-04 17:15:37
<!DOCTYPE?html>
<html>
??<head>
????<meta?charset="utf-8">
????<meta?http-equiv="X-UA-Compatible"?content="IE=edge">
????<meta?name="viewport"?content="width=device-width,?initial-scale=1">
????<title>123</title>
????<link?rel="stylesheet"?type="text/css"?href="css/jquery.fullPage.css">
????<link?href="css/bootstrap.min.css"?rel="stylesheet">
????<link?rel="stylesheet"?type="text/css"?href="css/index.css">
??</head>
??<body>
????<div>
??????<ul>
????????<li?data-menuanchor="page1"??class="active"><a?href="#page1">section1</a></li>
????????<li?data-menuanchor="page2"><a?href="#page2">section2</a></li>
????????<li?data-menuanchor="page3"><a?href="#page3">section3</a></li>
????????<li?data-menuanchor="page4"><a?href="#page4">section4</a></li>
??????</ul>
????</div>
????<div?id="fullPage">
??????<div>1</div>
??????<div>2</div>
??????<div>3</div>
??????<div>4</div>
????</div>
????<script?type="text/javascript"?src="js/jquery-3.1.0.min.js"></script>
????<script?src="js/bootstrap.min.js"></script>
????<script?type="text/javascript"?src="js/jquery.fullPage.min.js"></script>
????<script?type="text/javascript"?src="js/index.js"></script>
??</body>
</html>$(document).ready(function(){
$("#fullPage").fullpage({??
sectionsColor:["blue","yellow","green","orange"],
verticalCentered:false,
anchors:["page1","page2","page3","page4"],
//loopBottom:true,?????
fixedElements:".topMenu",??
continuousVertical:true,??
menu:".topMenu",???????
navigation:true,
navigationPosition:"left",???
navigationTooltips:["1","2","3","4"],
showActiveTooltip:true,????
//scrollOverflow:true,???
})
})
6 回答

牧野Peikon
TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超0個(gè)贊
不知道有沒(méi)有特殊的設(shè)置,不過(guò)可以曲線救國(guó):
在回調(diào)函數(shù)afterRender里(頁(yè)面初始化完成后)手動(dòng)調(diào)用moveTo(section, slide)來(lái)移動(dòng)到第一屏
添加回答
舉報(bào)
0/150
提交
取消