简体   繁体   English

我的两列都堆积在Zurb中。 如何并排显示它们?

[英]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.

相关问题 如何使用 Flexbox 或 DIV 并排显示列? - How can I display columns side-by-side with Flexbox or DIV? 我该如何显示? <ul> 作为使用CSS的两个并排列? - How can I display a <ul> as two side-by-side columns using CSS? 如何并排显示2个部分? - How do I display 2 sections side-by-side? 我怎么能有两个<div>元素并排(2列)</div><div id="text_translate"><p> 我想并排放置两个标签,就像是两列一样。</p><p> 到目前为止我有</p><pre>&lt;div id="wrapper"&gt; &lt;div id="1"&gt;text here&lt;/div&gt; &lt;div id="2"&gt;text here&lt;/div&gt; &lt;div style="clear:both"&gt;&lt;/div&gt; &lt;/div&gt;</pre><p> 我遇到的困难是 div 的 CSS。 有什么帮助吗?</p></div> - How can I have two <div> elements side-by-side (2 columns) 我怎样才能在 React 应用程序的页脚中并排显示我的两个图标? - How can i get my two icons side-by-side in my footer in React app? 如何将两个图像与Bootstrap 3并排居中? - How can I center two images side-by-side with Bootstrap 3? 如何将嵌套列表并排放置? - How can I position nested lists side-by-side? 如何将 div 与 position:fixed 并排对齐? - How can I align divs with position:fixed side-by-side? 即使两个浮动物品的宽度不足,我怎样才能确保两个浮动物品并排放置? - How can I ensure two floated items stay side-by-side even if there isn’t enough width for both of them? 我的div重叠了。 我希望他们并肩,但也要有回应 - My div's overlap. I want them to be side-by-side, but also responsive
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM