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

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

為啥我的點擊不會動,求解

<style type="text/css">
?? ?*{ padding:0px; margin:0;list-style: none;}
?? ??? ?#content{ width: 500px; height: 300px; position:relative; margin: 0 auto;border: 1px solid #FF4500;}
?? ??? ?#imgList{position: absolute; height: 300px; width: 10000px;background-color: #FF4533;}
?? ??? ?#imgList img{ float: left; width:500px; height: 300px;}
?? ??? ?#point{ position: absolute;height:30px;width: 150px; margin-left: -75px; text-align: center; left: 50%; bottom: 10px; }
?? ??? ?#point li{float:left; width:20px; height:20px;margin-right:5px; border-radius:10px; background-color:#FF4500;line-height: 20px; text-align: center;}
?? ??? ?#btnL,#btnR{ cursor:pointer;position: absolute; top: 50%;margin-top: -25px; height: 50px; width: 30px; background-color:rgba(0,0,0,0.5); text-align: center;line-height: 50px; color: #fff;}
?? ??? ?#btnR{ right:20px;}
?? ??? ?#btnL{left: 20px;}
?? ?</style>
?? ?<script type="text/javascript">
?? ??? ?window.onload= function(){
?? ??? ??? ?var oImgList =document.getElementById('imgList');
?? ??? ??? ?var oPoints =document.getElementById('point');
?? ??? ??? ?var oBtnL =document.getElementById('btnL');
?? ??? ??? ?var oBtnR =document.getElementById('btnR');
?? ??? ??? ??? ?oBtnL.onclick =function(){
?? ??? ??? ??? ????? oImgList.style.left =? parseInt(oImgList.style.left) - 500 +'px';
?? ??? ??? ??? ????? console.log(parseInt(oImgList.style.left));
?? ??? ??? ??? ?}

?? ??? ?}
?? ??? ?
?? ?</script>
?? ?<body>
?? ??? ?<div id="content">
?? ??? ??? ?<div id="imgList">
?? ??? ??? ??? ?<img src="img/1.jpg"/>
?? ??? ??? ??? ?<img src="img/2.jpg"/>
?? ??? ??? ??? ?<img src="img/3.jpg"/>
?? ??? ??? ??? ?<img src="img/4.jpg"/>
?? ??? ??? ??? ?<img src="img/5.jpg"/>
?? ??? ??? ?</div>
?? ??? ??? ?<ul id="point">
?? ??? ??? ??? ?<li>0</li>
?? ??? ??? ??? ?<li>1</li>
?? ??? ??? ??? ?<li>2</li>
?? ??? ??? ??? ?<li>3</li>
?? ??? ??? ??? ?<li>4</li>
?? ??? ??? ?</ul>
?? ??? ??? ?<a id="btnL">&lt;</a>
?? ??? ??? ?<a id="btnR">&gt;</a>
?? ??? ?</div>
?? ?</body>

正在回答

2 回答

???小白同問


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


原來是忘記設置行間樣式了;

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

舉報

0/150
提交
取消

為啥我的點擊不會動,求解

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

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

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號