gpt4 book ai didi

html - 为什么列不会在 Foundation 6 中并排放置?

转载 作者:行者123 更新时间:2023-11-28 03:39:34 25 4
gpt4 key购买 nike

当我的屏幕达到 1090 像素或处于平板电脑模式时,这些列将不会并排放置(其中一个被向下推,在它们之间创建一个空白)。我正在使用具有 12 列的 Foundation 6,但它不适用于中型屏幕。一旦桌面尺寸很大,它就可以工作。

.white-no-content {
background-color: #fff;
height: 0px;
}

.black-no-content {
background-color: #000;
height: 100px;
}

#left-about {
background-color: #e6e3e3;
height: 75px;
}
<!-- back white sections -->
<section class="row">
<article class="columns medium-2 black-no-content">
</article>
<article class="columns medium-10 white-no-content">
</article>
</section>

<!-- about -->
<section class="row">
<article class="columns medium-2" id="left-about">
</article>
<article class="columns medium-10 text-center">
<div>
<a href="#fashion-about">ABOUT</a>
</div>
</article>
</section>

最佳答案

我将您的代码复制并粘贴到一个 codepen 中并且它有效(即使在 1090 像素及以上时,这些列也是并排的):https://codepen.io/dgenest/pen/yXLNLq

  1. 您是否在页面中包含了基础 CSS?

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.3.1/css/foundation.min.css">
  2. 中等屏幕的默认断点是 640 像素。如果您的屏幕较小,您会看到列堆叠。

关于html - 为什么列不会在 Foundation 6 中并排放置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44297098/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com