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

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

為什么我的圖片滾動不了呢?急求?。?!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

<head>

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

? ? <title>自動展開</title>

<head>

? ? <meta charset="utf-8" />

? ? <title></title>

? ? <style>

? ? ? ? * {

? ? ? ? ? ? margin: 0px;

? ? ? ? ? ? padding: 0px;

? ? ? ? }

? ? ? ? #contain {

? ? ? ? ? ? position: relative;

? ? ? ? ? ? width:500px;

? ? ? ? ? ? height: 356px;border:3px solid #ff0;overflow:hidden;

? ? ? ? }

? ? ? ? #list {

? ? ? ? ? ? width: 2500px;height:356px;z-index:1

? ? ? ? }

? ? ? ? ? ? #list img {

? ? ? ? ? ? ? ? float: left;

? ? ? ? ? ? }

? ? ? ? #pre {

? ? ? ? ? ? background: url(hover_left.png) no-repeat top left;width:73px;height:74px;position:absolute;z-index:2;top:150px;left:0px;

? ? ? ? }

? ? ? ? #next{

? ? ? ? ? ? background: url(hover_right.png) no-repeat top left;width:73px;height:74px;position:absolute;z-index:2;top:150px;right:0px;;

? ? ? ? }

? ? ? ? #buttons {

? ? ? ? ? ? position: absolute;

? ? ? ? ? ? left: 200px;

? ? ? ? ? ? bottom: 20px;

? ? ? ? ? ? z-index: 2;width:150px;

? ? ? ? ? ? ? ? height: 10px;

? ? ? ? }

? ? ? ? ? ? #buttons span {

width:10px;

? ? ? ? ? ? ? ? height: 10px;float:left;display:inline-block;

? ? ? ? ? ? ?-moz-border-radius:50%;

? ? ? ? ? ? ?border-radius:50%;

? ? ? ? ? ? ?-webkit-border-radius:50%;

? ? ? ? ? ? ? ? background: #000;

? ? ? ? ? ? ? ? margin-right:5px;

? ? ? ? ? ? ? ? border:1px solid #fff;

? ? ? ? ? ? ? ? cursor:pointer;

? ? ? ? ? ? }

? ? </style>

? ? <script type="text/javascript">

? ? ? ?

? ? ? ? window.onload = function () {

? ? ? ? ? ? var contain = document.getElementById("contain");

? ? ? ? ? ? var list = document.getElementById("list");

? ? ? ? ? ? var buttons = document.getElementById("buttons");

? ? ? ? ? ? var pre = document.getElementById("pre");

? ? ? ? ? ? var next = document.getElementById("next");

? ? ? ? ? ? /* ? ?pre.onclick = function () {

? ??

? ? ? ? ? ? ? ? ? ? list.style.left = parseInt(list.style.left) - 500 + "px";

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? next.onclick = function () {

? ? ? ? ? ? ? ? ? ? list.style.left = parseInt(list.style.left) + 500 + "px"

? ? ? ? ? ? ? ? }

? ? ? ? ? ? };*/

? ? ? ? ? ? function animate(offset) {

? ? ? ? ? ? ? ? list.style.left = parseInt(list.style.left) + offset + 'px';

? ? ? ? ? ? }

? ? ? ? ? ? next.onclick = function () {

? ? ? ? ? ? ? ? animate(-500);//點擊時向左移動600像素

? ? ? ? ? ? }

? ? ? ? ? ? pre.onclick = function () {

? ? ? ? ? ? ? ? animate(500);//點擊時向右移動600像素

? ? ? ? ? ? }



? ? ? ? }

? ? </script>

</head>

<body>

? ? <div id="contain">

? ? ? ? <div id="list" style="left:500px;">

? ? ? ? <img src="1.jpg" />

? ? ? ? <img src="2.jpg" />

? ? ? ? <img src="3.jpg" />

? ? ? ? <img src="4.jpg" />

? ? ? ? <img src="5.jpg" />

</div>

<div id="buttons">

? ? <span index="1"></span>

? ? <span index="2"></span>


? ? <span index="3"></span>

? ? ? <span index="4"></span>

? ? ? <span index="5"></span>


</div>

? ??

? ? <div>

? ? ? ? <a href="#" id="pre"></a>

? ? ? ? <a href="#" id="next"></a>

? ? </div></div>

</body>

</html>


正在回答

1 回答

#list設(shè)置position:absolute

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

ladytsh 提問者

謝謝你~~!
2015-09-05 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

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

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

進(jìn)入課程

為什么我的圖片滾動不了呢?急求!?。?/h1> 我要回答 關(guān)注問題

微信客服

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

幫助反饋 APP下載

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

公眾號

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