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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

1-----6翻對(duì)的,6---1翻頁(yè),沒(méi)翻一頁(yè)總會(huì)回到最后一頁(yè)?

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

? ? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

? ? <title></title>

? ? <style>

? ? ??

? ? ? ? #my3dspace {

? ? ? ? ? ? -webkit-perspective: 800;

? ? ? ? ? ? -webkit-perspective-origin: 50% 50%;

? ? ? ? ? ? overflow: hidden;

? ? ? ? ? ? /* overflow:hidden; ?

? ? ? ? }


? ? ? ? #page {

? ? ? ? ? ? width: 400px;

? ? ? ? ? ? height: 400px;

? ? ? ? ? ? margin: 0 auto;

? ? ? ? ? ? /*采用3d效果*/

? ? ? ? ? ? -webkit-transform-style: preserve-3d;

? ? ? ? ? ? position: relative;

? ? ? ? ? ? /* position:relative; ?

? ? ? ? }


? ? ? ? .page {

? ? ? ? ? ? width: 360px;

? ? ? ? ? ? height: 360px;

? ? ? ? ? ? padding: 20px;

? ? ? ? ? ? font-weight:bold;

? ? ? ? ? ? line-height:360px;

? ? ? ? ? ? background-color: #000;

? ? ? ? ? ? color: #fff;

? ? ? ? ? ? text-align: center;

? ? ? ? ? ? font-size: 360px;

? ? ? ? ? ? font-family: 'Adobe Heiti Std';

? ? ? ? ? ? position: absolute;

? ? ? ? }


? ? ? ? #page1 {

? ? ? ? ? ? -webkit-transform-origin: bottom;

? ? ? ? ? ? -webkit-transition: -webkit-transform 1s linear;

? ? ? ? }


? ? ? ? #page2, #page3, #page4, #page5, #page6 {

? ? ? ? ? ? -webkit-transform-origin: bottom;

? ? ? ? ? ? -webkit-transition: -webkit-transform 1s linear;

? ? ? ? ? ? -webkit-transform: rotateX(90deg);

? ? ? ? }


? ? ? ? #op {

? ? ? ? ? ? text-align: center;

? ? ? ? ? ? margin: 0 auto;

? ? ? ? }

? ? </style>



? ? <script>

? ? ? ? var curindex = 1;

? ? ? ? function next() {


? ? ? ? ? ? if (curindex == 6)

? ? ? ? ? ? ? ? return;

? ? ? ? ? ? var cutpage = document.getElementById("page" + curindex);

? ? ? ? ? ? cutpage.style.transform = "rotateX(-90deg)";

? ? ? ? ? ? curindex++;

? ? ? ? ? ? var nextpage = document.getElementById("page" + curindex);

? ? ? ? ? ? nextpage.style.transform = "rotateX(0deg)";

? ? ? ? }


? ? ? ? function pre() {


? ? ? ? ? ? if (curindex == 1)

? ? ? ? ? ? ? ? return;

? ? ? ? ? ? var cutpage = document.getElementById("page" + curindex);

? ? ? ? ? ? cutpage.style.webkitTransform = "rotaeX(90deg)";

? ? ? ? ? ? curindex--;

? ? ? ? ? ? var prepage = document.getElementById("page" + curindex);

? ? ? ? ? ? prepage.style.webkitTransform = "rotateX(0deg)";


? ? ? ? }




? ? </script>

</head>

<body>

? ? <div id="my3dspace">

? ? ? ? <div id="page">

? ? ? ? ? ? <div class="page" id="page1">1</div>

? ? ? ? ? ? <div class="page" id="page2">2</div>

? ? ? ? ? ? <div class="page" id="page3">3</div>

? ? ? ? ? ? <div class="page" id="page4">4</div>

? ? ? ? ? ? <div class="page" id="page5">5</div>

? ? ? ? ? ? <div class="page" id="page6">6</div>


? ? ? ? </div>

? ? </div>

? ? <div id="op">

? ? ? ? <a href="javascript:next()">next</a>

? ? ? ? <a href="javascript:pre()">pre</a>

? ? </div>

</body>

</html>


正在回答

3 回答

神啊,少個(gè)t都能看出來(lái)。

我以為想的跟我一樣啊,能不能做成1到6之后,按next回到1,反復(fù)循環(huán)怎么實(shí)現(xiàn)??

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Yinsion_Nie

可以實(shí)現(xiàn),將if中的return改為和下面一樣的代碼,然后將curIndex賦值為1或者6.只是這樣會(huì)影響動(dòng)畫(huà)效果。
2016-11-12 回復(fù) 有任何疑惑可以回復(fù)我~

function pre() {


? ? ? ? ? ? if (curindex == 1)

? ? ? ? ? ? ? ? return;

? ? ? ? ? ? var cutpage = document.getElementById("page" + curindex);

? ? ? ? ? ? cutpage.style.webkitTransform = "rotaeX(90deg)";

? ? ? ? ? ? curindex--;

? ? ? ? ? ? var prepage = document.getElementById("page" + curindex);

? ? ? ? ? ? prepage.style.webkitTransform = "rotateX(0deg)";


? ? ? ? }

少打了一個(gè)字母t


0 回復(fù) 有任何疑惑可以回復(fù)我~

代碼是正確的 ? 是不是瀏覽器的問(wèn)題

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

1-----6翻對(duì)的,6---1翻頁(yè),沒(méi)翻一頁(yè)總會(huì)回到最后一頁(yè)?

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

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

公眾號(hào)

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