gpt4 book ai didi

html - CSS 3 列布局溢出到下一行

转载 作者:行者123 更新时间:2023-11-28 16:26:59 24 4
gpt4 key购买 nike

是否有可能以某种方式有一个固定高度的三列布局(使用列数:3;)溢出到下一行。基本上是 HTML 的分页媒体。

Overflow of Text from one Row into the next row of 3 fixed-height Columns

最佳答案

http://www.w3schools.com/css/css3_multiple_columns.asp

<!DOCTYPE html>
<html>
<head>
<style>
.newspaper {
-webkit-column-count: 3; /* Chrome, Safari, Opera */
-moz-column-count: 3; /* Firefox */
column-count: 3;
}
</style>
</head>
<body>

<p><b>Note:</b> Internet Explorer 9, and earlier versions, does not support the column-count property.</p>

<div class="newspaper">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.
</div>

</body>
</html>

这将为您提供多列布局。如果你想要多列和多行 View ,那么你可以将文本分成几个部分,然后将每个部分放在它自己的 .newspaper div 中。这是一个活生生的例子:

https://jsfiddle.net/sLfcwtcg/

关于html - CSS 3 列布局溢出到下一行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35924107/

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