【发布时间】:2018-06-30 05:55:12
【问题描述】:
我正在尝试弄清楚如何将 CSS 网格用于一些不对称布局,如下所示:
<h3>Two-Fifths - Three-Fifths</h3>
<div class="cols">
<div class="two-fifths">
<p>This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.</p>
</div>
<div class="three-fifths">
<p>This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.</p>
</div>
</div>
<hr />
<h3>One-Sixth - Five-Sixths</h3>
<div class="cols">
<div class="one-sixth">
<p>This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.</p>
</div>
<div class="five-sixths">
<p>This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.</p>
</div>
</div>
我认为主要问题是在子元素上定义列。我希望有人能帮忙。谢谢。
【问题讨论】:
-
你的 CSS 在哪里?如果您自己没有尝试过,那么这不是真正要问的地方,那里有很多很好的网格布局文档可以帮助您将它们放在一起,然后如果您有特定问题,请在此处发布人们可以提供帮助:)
-
你需要什么输出。?