CSS3 多列属性columns


属性简介
columns CSS3 columns 属性,是复合属性,设置或检索对象的列数和每列的宽度。
column-width CSS3 column-width 属性,设置或检索对象每列的宽度
column-count CSS3 column-count 属性,设置或检索对象的列数
column-gap CSS3 column-gap 属性,设置或检索对象的列与列之间的间隙
column-rule CSS3 column-rule 属性,是复合属性。设置或检索对象的列与列之间的边框。
column-rule-width CSS3 column-rule-width 属性,设置或检索对象的列与列之间的边框厚度。
column-rule-style CSS3 column-rule-style 属性,设置或检索对象的列与列之间的边框样式。
column-rule-color CSS3 column-rule-color 属性,设置或检索对象的列与列之间的边框颜色。
column-span CSS3 column-span 属性,设置或检索对象元素是否横跨所有列。
column-fill CSS3 column-fill 属性,设置或检索对象所有列的高度是否统一。
column-break-before CSS3 column-break-before 属性,设置或检索对象之前是否断行。
column-break-after CSS3 column-break-after 属性,设置或检索对象之后是否断行。
column-break-inside CSS3 column-break-inside 属性,设置或检索对象内部是否断行。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


<html>
	<head>
		<meta charset="utf-8">
		<title>title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
				list-style-type: none;
			}
			ul {
				column-count: 5;
				-webkit-column-count: 5;
			}
		style>
	head>
	<body>
		<ul>
			<li style="">第1列li>
			<li style="">第2列li>
			<li style="">第3列li>
			<li style="">第4列li>
			<li style="">第5列li>
			<li style="">第6列li>
			<li style="">第7列li>
			<li style="">第8列li>
			<li style="">第9列li>
			<li style="">第10列li>
		ul>
	body>
html>