css自动换列
CSS自动换列,即高度固定的情况下,超出高度,到下一列
XML/HTML Code复制内容到剪贴板
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <title>演示:使用CSS3制作漂亮的按钮</title>
- <style>
- div {
- border: solid 1px #000
- }
- #main-div {
- width: 200px;
- height: 300px;
- writing-mode: vertical-lr;
- }
- .item {
- width: 100px;
- height: 50px;
- display: inline-block;
- background-color: antiquewhite;
- writing-mode: horizontal-tb;
- }
- </style>
- </head>
- <body>
- <div id="main-div">
- <div class="item">一条内容</div>
- <div class="item">一条内容</div>
- <div class="item">一条内容</div>
- <div class="item">一条内容</div>
- <div class="item">一条内容</div>
- <div class="item">一条内容</div>
- <div class="item">一条内容</div>
- </div>
- </body>
- </html>
下一篇 CSS涟漪光圈+CSS小人跑步