gpt4 book ai didi

javascript - 将 div 中的内容填充到多个垂直列中

转载 作者:太空宇宙 更新时间:2023-11-04 11:46:55 24 4
gpt4 key购买 nike

我有其中填充的内容。此内容如何像在图像上一样垂直对齐到多个列中。

更新:

<div result>
<div ng-repeat="n in data| orderBy:'-Number'">
{{ n }}
</div>
</div>

enter image description here

最佳答案

也许这可以帮助:

var sec = document.body.getElementsByTagName("section")[0];
for (var i=1; i<=150;i++){
var n = document.createTextNode(i);
var li = document.createElement('li');
li.appendChild(n);
sec.appendChild(li)
}
li{list-style:none}
section{
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
}
<section></section>

关于javascript - 将 div 中的内容填充到多个垂直列中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30935859/

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