如果我有一个如下列表:
<ul>
<li>Alex</li>
<li>James</li>
<li>Thomas</li>
<li>Is</li>
<li>Asking</li>
<li>Questions</li>
<li>On</li>
<li>Stackoverflow</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
默认显示如下:
* Alex
* James
* Thomas
* Is
* Asking
* Questions
* On
* Stackoverflow
Run Code Online (Sandbox Code Playgroud)
我将使用什么CSS来显示它:
* Alex * Questions
* James * On
* Thomas * Stackoverflow
* Is
* Asking
Run Code Online (Sandbox Code Playgroud)
提前致谢...
Nik*_*ari 13
对于现代浏览器
ul{
-ms-column-count: 2;
-o-column-count: 2;
-moz-column-count: 2;
-khtml-column-count: 2;
column-count: 2;
}
Run Code Online (Sandbox Code Playgroud)