亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

使用fullpage后,獲取不到滾動條滾動的高度怎么解決呢?

使用fullpage后,獲取不到滾動條滾動的高度怎么解決呢?

正在回答

4 回答

console.log("anchorLink"+anchorLink+"index"+index); 我打印的都是object 是什么原因?

0 回復 有任何疑惑可以回復我~

把scrollOverflow設為true 滾動條就出來了

1 回復 有任何疑惑可以回復我~

$('#dowebok').fullpage({

sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', '#f90'],

anchors:['page1','page2','page3','page4'],

afterLoad:function(anchorLink,index){ //頁面的錨鏈接,頁面序號.當滾動完成后返回數據

console.log("anchorLink"+anchorLink+"index"+index);

},

onLeave:function(index,nextIndex,direction){ //滾動之前的頁面序號,滾動后的頁面序號,滾動的方向。滾動前先返回數據

console.log("index "+index+"nextIndex "+nextIndex+"direction "+direction);

},

afterRender:function(){ //頁面載入完成后返回,其他的回調方法全部在這個方法回調完成后回調

console.log("afterRender");

},

afterResize:function(){ //當頁面尺寸被改變后調用此方法

console.log("afterResize");

},

afterSlideLoad:function(anchorLink,index,slideAnchor,slideIndex){

console.log("anchorLink "+anchorLink+"index "+index+"slideAnchor "+slideAnchor+"slideIndex "+slideIndex);

},

onSlideLeave:function(anchorLink,index,slideIndex,direction,nextSlideIndex){

console.log("anchorLink "+anchorLink+"index "+index+"slideIndex "+slideIndex+"direction "+direction+"nextSlideIndex "+nextSlideIndex);

}

});


0 回復 有任何疑惑可以回復我~

可以使用fullpage提供的方法實現

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
FullPage.js全屏滾動插件
  • 參與學習       43807    人
  • 解答問題       217    個

基于jQuery的全屏滾動效果插件,讓翻頁顯得格外的高端大氣上檔次

進入課程

使用fullpage后,獲取不到滾動條滾動的高度怎么解決呢?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號