我已经学会用JavaScript制作旋转木马图像幻灯片脚本.我认为从基础学习它比从框架(即时脚本)制作一些东西更好,但我是新手.我用我的技术写这个剧本,但我认为这很糟糕.
好的,这是我的问题:我不知道如何制作这个幻灯片循环,任何人都可以帮助我?谢谢
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#wrapper {
width:400px;
height:140px;
position:absolute;
left:50%;
top:50%;
margin: -70px 0 0 -200px;
background: #383838;
overflow: hidden;
}
#abc-container {
position: absolute;
width:1200px;
height:140px;
}
#a {
width:400px;
height:140px;
background: #FF0000;
float: left;
}
#b {
width:400px;
height:140px;
background: #FFFF00;
float: left;
}
#c {
width:400px;
height:140px;
background: #00FFFF;
float: left;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="abc-container">
<div id="a"></div>
<div id="b"></div>
<div id="c"></div>
</div>
</div>
<div id="asas"></div>
<div id="asass"></div> …Run Code Online (Sandbox Code Playgroud)