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

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

只看了一二三章的內(nèi)容,為什么看不到箭頭呀?

//css代碼

#pcontainer{

overflow: hidden;

position: relative;

width:1400px;

height:800px;

border: 1px solid black;

}

#list{

width:9800px;

height:800px;

position: absolute;

z-index:1;

}

#list img{float:left;}

#buttons

{

position: absolute;

height:10px;

width:100px;

z-index: 2;

bottom:20px;

left: 650px;

}

#buttons span

{

cursor: pointer;

float:left;

border: 1px solid #fff;

width: 10px;

height:10px;

border-radius: 50%;

background: #333;

margin-right: 5px;


}

#buttons.on{background: orangered;}


.arrow {?

cursor: pointer;?

display: none;?

line-height: 39px;?

text-align: center;

font-size: 36px;

font-weight: bold;?

width: 40px;

height: 40px;

position: absolute;?

z-index: 2;

top: 180px;

background-color: RGBA(0,0,0,.3);

color: #fff;

}

? ? ? .arrow:hover { background-color: RGBA(0,0,0,.7);}

? ? ? ?#container:hover .arrow { display: block;}

? ? ? ?#prev { left: 100px;}

? ? ? ?#next { right: 100px;}

//html代碼

<div id="pcontainer">

<div><img src="images/Alta.jpg" width="800" ></div>

<div id="list" style="left: -1400px;">

<img src="images/6.jpg" width="1400" alt="">

<img src="images/2.jpg" width="1400" alt="">

<img src="images/3.jpg" width="1400" alt="">

<img src="images/4.jpg" width="1400" alt="">

<img src="images/5.jpg" width="1400" alt="">

<img src="images/6.jpg" width="1400" alt="">

<img src="images/2.jpg" width="1400" alt="">

</div>

<div id="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>

//js代碼

window.onload = function(){

var pcontainer=document.getElementById('pcontainer');

var list=document.getElementById('list');

var buttons=document.getElementById('buttons').getElementByTagName('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(1400);

}

prev.onclick=function(){

animate(-1400);

}


}


正在回答

3 回答

js代碼

getElementById()和getElementsByTagName()的方法名也是有錯

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

我知道了!是css樣式中寫錯了

#container:hover .arrow { display: block;}

改為

#pcontainer:hover .arrow { display: block;}

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

如圖(圖片旁邊的空白也沒有箭頭?。?/p>

在DW雙擊那個<a>的鏈接,也找不到箭頭

到底是為什么??

https://img1.sycdn.imooc.com//5bc759bd0001fb8b14070818.jpg

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

舉報

0/150
提交
取消

只看了一二三章的內(nèi)容,為什么看不到箭頭呀?

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

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

幫助反饋 APP下載

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

公眾號

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