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

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

點了箭頭不切換

? #container{
??????? position: relative;
??????? width:1350px;
??????? height: 600px;
??????? overflow: hidden;
??? }
??? #list{
??????? position: absolute;
??????? z-index: 1;
??????? width: 9450px;
??????? height: 600px;
??? }
??? #list img{
??????? float: left;
??????? width: 1350px;
??????? height: 600px
??? }
??? #buttons{
??????? position: absolute;height: 10px;width: 100px;
??????? z-index: 2;bottom: 50px;left:650px;
??? }
??? #buttons span{
??????? float: left;
??????? margin-right: 5px;
??????? width: 15px;
??????? height: 15px;
??????? border: 1px solid #fff;
??????? border-radius: 50%;
??????? background: #333;
??????? cursor: pointer;
??? }
??? #buttons .on{
??????? background-color: red;
??? }
??? .arrow{
??????? position: absolute;
??????? top: 280px;

??????? z-index: 2;/*
??????? display: none;*/
??????? width: 40px;
??????? height: 40px;
??????? font-size: 36px;
??????? font-weight: bold;
??????? line-height: 39px;
??????? text-align: center;
??????? color: #fff;
??????? background-color: rgba(0,0,0,3);
??????? cursor: pointer;/*鼠標指針變成手的形狀*/
??? }
??? .arrow:hover{
??????? background-color: rgba(0,0,0,.7);
??? }
??? #container:hover.arrow{
??????? display: block;
??? }
??? #prev{
??????? left: 80px;
??? }
??? #next{
??????? right: 80px;
??? }
??? * {
??????????? margin: 0;
??????????? padding: 0;
??????????? text-decoration: none;
??????? }

?????? body {
?????????? padding: 0px;
??????? }
?? ?</style>
??? <script type="text/javascript">
??????? /* 在整個頁面加載完畢以后獲取元素 */
??????? window.onload=function (){
??????????? var container =document.getElementById('container');
??????????? var list=document.getElementById('list');
??????????? var buttons=document.getElementById('buttons').getElementsByTagName('span');//獲取5個按鈕
??????????? var prev=document.getElementById('prev');//上一個
??????????? var next=document.getElementById('next');//下一個
?????????? ?
??????????? function animate(offset){
??????????????? var newLeft =? parseInt(list.style.left) + offset;
??????????????? list.style.left = newLeft + 'px';
??????????????? if(newLeft > -1350){
??????????????????? list.style.left = -6750 + 'px'
??????????????? }
??????????????? if (newLeft < -6750){
??????????????????? list.style.left = -1350 + 'px'
??????????????? }
??????????? }
??????????? next.onclick = function(){
??????????????? index += 1;
??????????????? showButton();
??????????????? animate(-1350);
??????????? }
??????????? prev.onclick = function(){
??????????????? animate(1350);
??????????????? index -= 1;
??????????????? showButton();
??????????? }
????? ?

??? }
??? </script>

正在回答

1 回答

你有多少張照片?我復(fù)制你的代碼去運行,點擊箭頭會切換喔

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

舉報

0/150
提交
取消
焦點圖輪播特效
  • 參與學(xué)習       65327    人
  • 解答問題       634    個

通過本教程學(xué)習您將能掌握非常實用的焦點圖輪播特效的制作過程

進入課程

點了箭頭不切換

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

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

幫助反饋 APP下載

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

公眾號

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