div绝对居中、宽高自适应、多栏宽度自适应
1 <style> 2 body { 3 background-color: #e1ddd9; 4 font-size: 12px; 5 font-family: Verdana, Arial, Helvetica, SunSans-Regular, Sans-Serif; 6 color:#564b47; 7 padding:0px; 8 margin:0px; 9 } 10 #main { 11 position:absolute; 12 height:200px; 13 width:400px; 14 margin:-100px 0px 0px -200px; 15 top: 50%; 16 left: 50%; 17 text-align: left; 18 padding: 0px; 19 background-color: #f5f5f5; 20 border: 1px dotted #000000; 21 overflow: auto; 22 } 23 </style>