CSS3 Multi-Column layout

Source: Internet
Author: User

1.column-count: Displays the contents of an element into multiple columns.

2.column-gap: Sets the distance between multiple columns.

3.column-rule: Adds a spacer line between columns and columns.

?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 <!doctype html> <meta charset="utf-8"> <title>CSS3分栏布局</title> <style type="text/css"> *{margin:0;padding:0;} #div{width:500px;column-count:4;-moz-column-count:4;-webkit-column-count:4;column-gap:2em;-moz-column-gap:2em;-webkit-column-gap:2em;column-rule:1px solid red;-moz-column-rule:1px solid red;-webkit-column-rule:1px solid red;} #div p{text-indent:2em;} </style> <body>     <div id="div">         <p>《爸爸去哪儿》是湖南卫视从韩国MBC电视台引进的亲子户外真人秀节目,智理参考自MBC电视台节目《爸爸!我们去哪儿?》,由《变形计》制作人谢涤葵及其团队和《我是歌手》制作人洪涛及其团队联合打造。节目中,五位明星爸爸在72小时的户外体验中,单独照顾子女的饮食起居,共同完成节目组设置的一系列任务。</p>         <p>第一季节目于2013年8月开始录制,10月11日播出,林志颖父子、王岳伦父女、田亮父女、郭涛父子、张亮父子组成嘉宾阵容,进行农村放羊、野外爬山、上船捕鱼等活动。[1]《爸爸去哪儿第二季》计划于2014年6月推出,并在原来12集的基础上增加至16集,节目播出时间横跨整个暑期档。</p>     </div> </body>

  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.