日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

使用fullPage做的大图片全屏滚动

發(fā)布時間:2025/3/20 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 使用fullPage做的大图片全屏滚动 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

本地的圖片和css等文件

<!DOCTYPE html>

<html lang="zh-CN">

<head>

<meta charset="utf-8">

<title>fullPage.js — 背景演示_dowebok</title>

<!--網(wǎng)頁的鏈接css <link rel="stylesheet" href="http://cdn.dowebok.com/77/css/jquery.fullPage.css"> -->

<link rel="stylesheet" href="css/jquery.fullPage.css">

<style>

.section1 { background: url(picuter/1.jpg) 50%;}

.slide{ background: url(picuter/statics-topic-pi-assets-img-panel4_bg3.jpg) 50%;}

.section3 { background: url(picuter/statics-topic-pi-assets-img-panel3_bg3.jpg) 50%;}

.section4 { background: url(picuter/statics-topic-pi-assets-img-panel4_bg1.jpg) 50%;}

</style>

<script src="http://cdn.staticfile.org/jquery/1.8.3/jquery.min.js"></script>

<!-- <script src="http://cdn.dowebok.com/77/js/jquery.fullPage.min.js"></script> -->

<script src="script/jquery.fullPage.min.js"></script>

<script>

$(function(){

$('#dowebok').fullpage();

setInterval(function(){

? ? ? ? $.fn.fullpage.moveSlideRight(); ?//自動向右滾動

? ? }, 3000);

});

/* function xian(){ ? ? ? ? ? ?moveSectionDown()向下滾動

? alert({}+'a'<{}+'b');

} */

</script>

</head>


<body>


<div id="dowebok">

<div class="section section1"><center>仙哥的天堂</center></div>

<div class="section section2">

? ?<div class="slide"></div>

? ? ? ? <div class="slide"><img src="picuter/statics-topic-pi-assets-img-panel3_bg1.jpg"></img></div>

? ? ? ? <div class="slide"><img src="picuter/statics-topic-pi-assets-img-panel3_bg2.jpg"></img></div>

</div>

<div class="section section3"></div>

<div class="section section4"></div>

</div>

<a href="http://www.dowebok.com/" style="display: none;">dowebok</a>

<a href="http://www.dowebok.com/77.html" style="display: none;">jQuery全屏滾動插件fullPage.js</a>

<script src="http://hm.baidu.com/h.js?988268596e7a833ffbfb2e9f82d93e18"></script>

</body>

</html>




網(wǎng)絡(luò)的css和圖片等文件



<!DOCTYPE html>

<html lang="zh-CN">

<head>

<meta charset="utf-8">

<title>fullPage.js — 背景演示_dowebok</title>

<link rel="stylesheet" href="http://cdn.dowebok.com/77/css/jquery.fullPage.css">

<style>

.section1 { background: url(http://www.taofoot.com/1.jpg) 50%;}

.slide{ background: url(http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel4_bg3.jpg) 50%;}

.section3 { background: url(http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel3_bg3.jpg) 50%;}

.section4 { background: url(http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel4_bg1.jpg) 50%;}

</style>

<script src="http://cdn.staticfile.org/jquery/1.8.3/jquery.min.js"></script>

<script src="http://cdn.dowebok.com/77/js/jquery.fullPage.min.js"></script>

<script>

$(function(){

$('#dowebok').fullpage();

});

</script>

</head>


<body>


<div id="dowebok">

<div class="section section1"><center>仙哥的天堂</center></div>

<div class="section section2">

? ?<div class="slide"></div>

? ? ? ? <div class="slide"><img src="http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel3_bg1.jpg"></img></div>

? ? ? ? <div class="slide"><img src="http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel3_bg2.jpg"></img></div>

</div>

<div class="section section3"></div>

<div class="section section4"></div>

</div>

<a href="http://www.dowebok.com/" style="display: none;">dowebok</a>

<a href="http://www.dowebok.com/77.html" style="display: none;">jQuery全屏滾動插件fullPage.js</a>

<script src="http://hm.baidu.com/h.js?988268596e7a833ffbfb2e9f82d93e18"></script>


</body>

</html>



轉(zhuǎn)載于:https://blog.51cto.com/hackerxian/1619013

總結(jié)

以上是生活随笔為你收集整理的使用fullPage做的大图片全屏滚动的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。