- 时间:2021-05-26 13:37 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:jQuery animate(滑块滑动效果代码)
[img]http://files.jb51.net/upload/2010-1/20100101010850631.gif[/img]
HTML
[url=#]<div id="box">
</div>
<p><a href="#" class="run">Run</a></p><div id="box"></div>
CSS
<style type="text/css">
body {}{
margin: 20px auto;
padding: 0;
width: 580px;
font: 80%/120% Arial, Helvetica, sans-serif;
}
a {}{
font-weight: bold;
color: #000000;
}
#box {}{
background: #6699FF;
height: 100px;
width: 100px;
position: relative;
}
</style>
<style type="text/css">body {}{ margin: 20px auto; padding: 0; width: 580px; font: 80%/120% Arial, Helvetica, sans-serif;}a {}{ font-weight: bold; color: #000000;}#box {}{ background: #6699FF; height: 100px; width: 100px; position: relative;}</style>
JavaScript