0
A
回答
1
我之前使用過jQuery Cycle Plugin。它支持預覽加載圖片並預加載圖片。它有很多不錯的功能。我不確定你是否可以控制高度/ witdh,但我認爲如果你把一個CSS溢出屬性的周圍股利。
例如使用一些小的修改,基本演示,你可以找到關於 http://jquery.malsup.com/cycle/basic.html
在這種情況下,它是唯一的CSS樣式我已經改變了:-)
<!DOCTYPE html>
<html>
<head>
<title>JQuery Cycle Plugin - Basic Demo</title>
<style type="text/css">
.slideshow { height: 160px; width: 160px; margin: auto; overflow: auto }
.slideshow img { }
</style>
<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<!-- include Cycle plugin -->
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
});
});
</script>
</head>
<body>
<div class="slideshow">
<img src="http://cloud.github.com/downloads/malsup/cycle/beach1.jpg" width="200" height="200" />
<img src="http://cloud.github.com/downloads/malsup/cycle/beach2.jpg" width="200" height="200" />
<img src="http://cloud.github.com/downloads/malsup/cycle/beach3.jpg" width="200" height="200" />
<img src="http://cloud.github.com/downloads/malsup/cycle/beach4.jpg" width="200" height="200" />
<img src="http://cloud.github.com/downloads/malsup/cycle/beach5.jpg" width="200" height="200" />
</div>
</body>
</html>
查看更多在他們的主頁上: http://jquery.malsup.com/cycle/
相關問題
- 1. 加載畫廊與particuler圖像位置
- 2. Android:Volley圖像加載器與畫廊
- 3. 加載jQuery和Ajax有點畫廊
- 4. 幫助加載「畫廊」畫廊與.load
- 5. 像Flash畫廊的Jquery畫廊
- 6. jquery - 無法獲取圖像加載燈箱樣式的畫廊
- 7. PrettyPhoto在畫廊最後圖像加載首先
- 8. jQuery的網格圖像畫廊
- 9. 動態加載與無限滾動對齊畫廊圖像
- 10. 與JS或jQuery加載畫廊縮略圖異步
- 11. 問題與字幕在畫廊圖像
- 12. 在頁面加載後使用jquery-ajax加載圖像
- 13. Fancybox畫廊與jQuery的.live()
- 14. Django畫廊與jquery
- 15. 加載從畫廊的圖像轉換成gridview的
- 16. three20圖像畫廊,的TabBar
- 17. jQuery和Ajax加載圖像
- 18. iOS圖像畫廊
- 19. jQuery的畫廊縮略圖?
- 20. 從後臺加載緩存的圖像在後臺線程android
- 21. Android無法從畫廊加載正確的導向圖像
- 22. 畫廊下載後不顯示圖片?
- 23. prettyphoto - jQuery的畫廊插件 - 圖片不能加載
- 24. 在facebook畫廊中加載分頁圖像
- 25. 使用dispatch_async在後臺加載圖像
- 26. 使用Flex在後臺加載圖像
- 27. 使用CloudKit在後臺加載圖像?
- 28. jQuery與垂直圖像畫廊縮略圖導航?
- 29. jQuery圖像畫廊與圖片飛入和飛出
- 30. 只找到那些與圖像畫廊
背景圖像是什麼? – muthu