代码编辑器:
1
<style>
2
#myDIV{
3
column-count:3;
4
column-rule:3px outset coral;
5
/* 针对 Chrome 和 Safari 的代码 */
6
column-count:3;
7
column-rule:3px outset coral;
8
/* 针对 Firefox 的代码 */
9
column-count:3;
10
column-rule:3px outset coral;
11
}
12
</style>
13
<p>点击“尝试一下”按钮改变 column-rule 的颜色:</p>
14
<button onclick="myFunction()">尝试一下</button>
15
<div id="myDIV">
16
Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
17
sed diam nonummy nibh euismod tincidunt ut laoreet dolore
18
magna aliquam erat volutpat. Ut wisi enim ad minim veniam,