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

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

不知道為什么出現(xiàn)不了箭頭的切換。很頭疼啊

<!DOCTYPE html>
<html lang="en">
<head>
? ?<meta charset="UTF-8">
? ?<title>lunbo</title>
<style type="text/css">
? ?*{margin:0;padding:0;text-decoration: none;}

? ?#container{width:600px;height:400px;position:relative;border:1px solid red;overflow: hidden;}
? ?.list{position:absolute;z-index:1;width:3000px;height:400px;}
? ?.list img{float:left;width:600px;height:400px;}
? ?.buttons{position:absolute;width:80px;height:8px;bottom:20px;left:250px;z-index:2;}
? ?.buttons span{float:left;border:1px solid #fff;width:10px;height:8px;border-radius:50%;background:#333;margin-left:4px;}
? ?.buttons .on{background: orangered;}
? ?.arrow{position:absolute;color:#fff;
? ? ? ?border:1px solid red;
? ? ? ?width:40px;height:40px;
? ? ? ?font-size:39px;line-height:40px;
? ? ? ?font-weight:bold;
? ? ? ?text-align:center;display:none;
? ? ? ?background-color: RGBA(0,0,0,.3);
? ? ? ?z-index:2;
? ?top:180px;}
? ?.arrow:hover{background-color: RGBA(0,0,0,.7)}
? ?#container:hover .arrow{display:block;}
? ?#prev{left:20px;}
? ?#next{right:20px;}

</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');
? ? ? ?var prev=document.getElementById('prev');
? ? ? ?var next=document.getElementById('next');


? ? ? ?function animate(offset){
? ? ? ? ? ?list.style.left=parseInt(list.style.left)+offset+'px';
? ? ? ?}
? ? ? ?next.onclick=function(){
? ? ? ? ? ?animate(-600);
? ? ? ?}
? ? ? ?prev.onclick=function(){
? ? ? ? ? ?animate(600);
? ? ? ?}
? ?}
? ?</script>
</head>
<body>
<div id="container">
? ?<div class="list" style="left:-600px;">
? ?<img src="images/27.jpg" alt=""/>
? ?<img src="images/33.jpg" alt=""/>
? ?<img src="images/32.jpg" alt=""/>
? ?<img src="images/28.jpg" alt=""/>
? ?<img src="images/29.jpg" alt=""/>
? ?</div>
? ?<div class="buttons">
? ? ? ?<span index="1" class="on"></span>
? ? ? ?<span index="2"></span>
? ? ? ?<span index="3"></span>
? ? ? ?<span index="4"></span>
? ? ? ?<span index="5"></span>
? ?</div>
<a href="javascript:;" class="arrow"id="prev">&lt;</a>
? ?<a href="javascript:;" class="arrow" id="next">&gt;</a>
</div>
</body>

正在回答

2 回答

id 和class沒(méi)太大區(qū)別

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

weibo_ning心_0

document.getElementById 獲取的是ID class就獲取不了了,改成id 就可以
2017-03-31 回復(fù) 有任何疑惑可以回復(fù)我~

應(yīng)該是id list 不是class list

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

舉報(bào)

0/150
提交
取消
焦點(diǎn)圖輪播特效
  • 參與學(xué)習(xí)       65330    人
  • 解答問(wèn)題       638    個(gè)

通過(guò)本教程學(xué)習(xí)您將能掌握非常實(shí)用的焦點(diǎn)圖輪播特效的制作過(guò)程

進(jìn)入課程

不知道為什么出現(xiàn)不了箭頭的切換。很頭疼啊

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

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

幫助反饋 APP下載

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

公眾號(hào)

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