【发布时间】:2010-05-17 17:07:48
【问题描述】:
我正在尝试设置一个全屏 jquery 滑块。我将项目分为两个步骤 1) css 和 2) js。
1) CSS,下面是我正在拍摄的图片(没有固定高度),下面是我目前无法使用的代码。
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
/* Positioning */
#container { width: 2500px; }
.block { display: inline; }
/* Styling */
.block img { padding: 5px; }
</style>
</head>
<body>
<div id="container">
<div class="block"><img src="http://i42.tinypic.com/1zp2poz.gif"></div>
<div class="block"><img src="http://i42.tinypic.com/1zp2poz.gif"></div>
<div class="block"><img src="http://i42.tinypic.com/1zp2poz.gif"></div>
</div>
</body>
</html>
2) Javascript,使用 jquery 我希望 div 在单击它们时向左滑动...如果可能的话,就像 jQuery Coda Slider。
谢谢,感谢任何帮助。
【问题讨论】:
-
链接断开,新链接很可能是这样的:kevinbatdorf.github.io/codaslider
标签: jquery css jquery-plugins javascript horizontal-scrolling