
- jQuery 教程
- jQuery - 首頁
- jQuery - 路線圖
- jQuery - 概述
- jQuery - 基礎
- jQuery - 語法
- jQuery - 選擇器
- jQuery - 事件
- jQuery - 屬性
- jQuery - AJAX
- jQuery DOM 操作
- jQuery - DOM
- jQuery - 新增元素
- jQuery - 刪除元素
- jQuery - 替換元素
- jQuery CSS 操作
- jQuery - CSS 類
- jQuery - 尺寸
- jQuery - CSS 屬性
- jQuery 效果
- jQuery - 效果
- jQuery - 動畫
- jQuery - 鏈式操作
- jQuery - 回撥函式
- jQuery 遍歷
- jQuery - 遍歷
- jQuery - 遍歷祖先元素
- jQuery - 遍歷子孫元素
- jQuery UI
- jQuery - 互動
- jQuery - 小部件
- jQuery - 主題
- jQuery 參考
- jQuery - 選擇器
- jQuery - 事件
- jQuery - 效果
- jQuery - HTML/CSS
- jQuery - 遍歷
- jQuery - 其他
- jQuery - 屬性
- jQuery - 工具函式
- jQuery 外掛
- jQuery - 外掛
- jQuery - PagePiling.js
- jQuery - Flickerplate.js
- jQuery - Multiscroll.js
- jQuery - Slidebar.js
- jQuery - Rowgrid.js
- jQuery - Alertify.js
- jQuery - Progressbar.js
- jQuery - Slideshow.js
- jQuery - Drawsvg.js
- jQuery - Tagsort.js
- jQuery - LogosDistort.js
- jQuery - Filer.js
- jQuery - Whatsnearby.js
- jQuery - Checkout.js
- jQuery - Blockrain.js
- jQuery - Producttour.js
- jQuery - Megadropdown.js
- jQuery - Weather.js
- jQuery 有用資源
- jQuery - 問答
- jQuery - 快速指南
- jQuery - 有用資源
- jQuery - 討論
jQuery - Rowgrid.js
Rowgrid.js 是一個 jQuery 外掛,用於以行顯示影像。
如下所示的簡單 rowgrid 示例:
<!doctype html> <html lang = "en"> <head> <meta charset = "UTF-8"> <style> .container:before, .container:after { content: ""; display: table; } .container:after { clear: both; } .item { float: left; margin-bottom: 15px; } .item img { max-width: 100%; max-height: 100%; vertical-align: bottom; } .first-item { clear: both; } .last-row, .last-row ~ .item { margin-bottom: 0; } </style> <script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"> </script> <script src = "/jquery/src/rowgrid/jquery.row-grid.js"> </script> <script> $(document).ready(function(){ $(".container").rowGrid({itemSelector: ".item", minMargin: 10, maxMargin: 25, firstItemClass: "first-item"}); }); </script> </head> <body> <!-- Items with example images --> <div class = "container"> <div class = "item"> <img src = "https://tutorialspoint.tw/images/75-logo.jpg" width = "220" height = "200" /> </div> <div class = "item"> <img src = "https://tutorialspoint.tw/images/absolute-classes-free.jpg" width = "180" height = "200" /> </div> <div class = "item"> <img src = "https://tutorialspoint.tw/images/absolute-classes-latest-technologies.jpg" width = "250" height = "200" /> </div> <div class = "item"> <img src = "https://tutorialspoint.tw/images/absolute-classes.jpg" width = "200" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/240/200?5" width = "240" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/210/200?6" width = "210" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/260/200?21" width = "260" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/220/200?22" width = "220" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/220/200?1" width = "220" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/180/200?2" width = "180" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/250/200?3" width = "250" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/200/200?4" width = "200" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/240/200?5" width = "240" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/210/200?6" width = "210" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/200/200?7" width = "200" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/190/200?8" width = "190" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/260/200?9" width = "260" height = "200" /> </div> <div class = "item"> <img src = "https://lorempixel.com/220/200?10" width = "220" height = "200" /> </div> </div> </body> </html>
這應該產生以下結果:
點選這裡廣告