第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

move.js問題

move.js問題

AiniYOUMe 2015-11-13 11:40:17
為什么使用fullpage時候用move.js的onLeave無法觸發(fā)第二次效果也無法回調(diào)到上以頁面,通過Chrome提示移動必須使用元素或選擇器進(jìn)行初始化,請問問題出現(xiàn)在哪里怎么解決,代碼如下:<!doctype html><html><head><meta charset="utf-8"><title>fullpage熟悉</title><link rel="stylesheet" type="text/css" href="css/jquery.fullPage.css"><style type="text/css">*body{ padding:0; margin:0;}.section{ text-align:center;}.section1 h1{ font-size:70px;}.section1 h3{ font-size:30px;}.section1 p{ font-size:18px; margin-top:800px;}.seciton2 h3{ font-size:30px; margin-left:-1500px;}.seciton2 p{ font-size:18px; margin-left:1500px;}</style></head><body><div id="fullpage">?? ?<div class="section section1">?? ??? ?<h1>fullpage練習(xí)</h1>??????? <h3>現(xiàn)在開始</h3>??????? <p>這是第一個頁面</p>??? </div>??? <div class="section section2">?? ??? ?<h3>左邊進(jìn)攻</h3>??????? <p>右邊進(jìn)攻</p>??? </div></div><script type="text/javascript" src="js/jquery-2.1.4.js"></script><script type="text/javascript" src="js/jquery.fullPage.js"></script><script type="text/javascript" src="js/move.js"></script><script type="text/javascript">?? ?$(document).ready(function() {??????? $('#fullpage').fullpage({?? ??? ??? ?sectionsColor:['red','yellow'],?? ??? ??? ?anchors:['page1','page2'],?? ??? ??? ?navigation:true,?? ??? ??? ?navigationPosition:'right',?? ??? ??? ?navigationTooltips:['page1','page2'],?? ??? ??? ?afterLoad:function(link,index){?? ??? ??? ??? ?switch(index){?? ??? ??? ??? ??? ?case 1:move('.section1 h1').scale(1.5).end();?? ??? ??? ??? ??? ??? ??? move('.section1 h3').scale(0.7).end();?? ??? ??? ??? ??? ??? ??? move('.section1 p').set('margin-top','5%').end();?? ??? ??? ??? ??? ?break;?? ??? ??? ??? ??? ?case 2:move('.section2 h3').set('margin-left','20%').end();?? ??? ??? ??? ??? ??? ??? move('.section2 p').set('margin-left','-20%').end();?? ??? ??? ??? ??? ?break;?? ??? ??? ??? ??? ?default:?? ??? ??? ??? ??? ?break;?? ??? ??? ??? ??? ?}?? ??? ??? ??? ?},?? ??? ??? ?onLeave:function(link,index){?? ??? ??? ??? ?switch(index){?? ??? ??? ??? ??? ?case 1:move('section1 h1').scale(1).end();?? ??? ??? ??? ??? ??? ??? move('section1 h3').scale(1).end();?? ??? ??? ??? ??? ??? ??? move('section1 p').set('margin-top','800px').end();?? ??? ??? ??? ??? ?break;?? ??? ??? ??? ??? ?case 2:move('.section2 h3').set('margint-left','-1500px').end();?? ??? ??? ??? ??? ??? ??? move('.section2 p').set('margint-left','1500px').end();?? ??? ??? ??? ??? ?break;?? ??? ??? ??? ??? ?default:?? ??? ??? ??? ??? ?break;?? ??? ??? ??? ??? ?}?? ??? ??? ??? ?},?? ??? ??? ?afterRender:function(){?? ??? ??? ??? ?},?? ??? ?});??? });</script></body></html>
查看完整描述

1 回答

?
echo_kinchao

TA貢獻(xiàn)600條經(jīng)驗 獲得超86個贊

看看是不是他的設(shè)置參數(shù)有誤

查看完整回答
反對 回復(fù) 2015-11-17
  • 1 回答
  • 0 關(guān)注
  • 1307 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號