[英]My 2 columns are stacking in Zurb. How can I display them side-by-side?
I want to have two columns, however they seem to want to be stacked on top of each other. 我想要两列,但是它们似乎要彼此堆叠。 I am using the latest download.
我正在使用最新的下载。 Why is the grid not gridding?
为什么网格没有网格化?
<link rel="stylesheet" href="/assets/css/foundation.min.css">
<link href='/assets/css/foundation-icons.css' rel='stylesheet' type='text/css'>
<link href='/assets/css/jquery.dataTables.min.css' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/assets/css/app.css">
<div class="row">
<div class="small-12 large-6 columns" style="border:solid 2px black">
<p>This is</p>
</div>
<div class="small-12 large-6 columns" style="border:solid 2px red">
<p>not a love song</p>
</div>
</div> <!-- end of row -->
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/foundation.min.js"></script>
<script src="/assets/js/what-input.js"></script>
<script src="/assets/js/jquery.dataTables.min.js"></script>
<script src="/assets/js/app.js"></script>
The complete zipped version of Foundation uses the new(ish) XY-Grid by default. 完整的拉链版本的Foundation默认使用新的(ish)XY-Grid。 The syntax is different than the Float Grid and Flex Grid, which are somewhat interchangeable.
语法与Float Grid和Flex Grid不同,后者在某种程度上可以互换。 Most notably, with the XY-Grid, instead of "row", you use "grid-x" and instead of "column", you use "cell".
最明显的是,对于XY网格,使用“ grid-x”代替“行”,而使用“ cell”代替“列”。 If you want to use the float grid or the flex grid, you have to select that option before downloading the zip file from the download page.
如果要使用浮动网格或弹性网格,则必须先选择该选项,然后再从下载页面下载zip文件。 The grid options are near the top of the page.
网格选项位于页面顶部附近。 In the doc, the grids are explained in the "General" section.
在文档中,“常规”部分介绍了网格。 Flex Grid and XY-Grid have more limited browser support.
Flex Grid和XY-Grid具有更有限的浏览器支持。
large-6 + 2px > 50% so the boxes never will float. 大6 + 2px> 50%所以盒子永远不会漂浮。 Give the a BG color or use outline insted of border.
给出BG颜色或使用边框的轮廓。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.