【发布时间】:2012-09-16 06:03:49
【问题描述】:
我正在尝试使用内联图像实现多列布局。
如下图所示:
=========== ============ ============ ============ ============ + + + + + +
=========== ============ ============ ============ ============ + +
=========== ============ ============ ============ ============ + Image-3 +
=========== ============ ============ ============ ============ + +
+ + + + + + + + + + + + + ============ + + + + + + ============ + +
+ + ============ + + ============ + +
+ Image-1 + ============ + Image-2 + ============ + + + + + +
+ Spanned across columns + ============ + + Empty space ============
+ + ============ + + as Image-3 ============
+ + ============ + + cannot fit ============
+ + + + + + + + + + + + + ============ + + + + + + here ============
我必须在基于 Windows 8 应用程序 JavaScript/HTML 的应用程序中使用它(因此您可以假设它仅适用于 IE 10)。
我尝试使用以下 CSS,但它没有按预期布局图像。
column-fill: auto;
column-gap: 30px;
column-width: 270px;
知道我该怎么做吗?
【问题讨论】:
-
您是在使用任何网格系统还是在构建自己的网格系统?
标签: css microsoft-metro