這裏是一個粗糙的正常網格結構:http://jsfiddle.net/CFxzH/1/如何創建蜂巢格網格而不是標準網格?
我想創建我所說的蜂窩網格而不是標準的div網格。這是一個粗略的例子。
正常電網
[] [] [] [] []
[] [] [] [] []
[] [] [] [] []
[] [] [] [] []
[] [] [] [] []
蜂巢導
[] [] [] [] []
[] [] [] []
[] [] [] [] []
[] [] [] []
[] [] [] [] []
我也想實現的是父箱的動態寬度爲100%,與窗口的寬度擴大。
當您每行交替使用偶數量的元素和奇數量的元素時,您應該得到一個蜂窩。當然,它不會總是填滿最後一行。 – YMMD 2012-04-10 00:23:36
這是密切的... http://jsfiddle.net/CFxzH/2/ – bfavaretto 2012-04-10 01:24:31