ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 六宫格 ![](https://box.kancloud.cn/2016-09-09_57d24f32bb1e9.png) ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style> * {margin:0; padding:0;} .clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;} .clearfix {zoom:1;} ul {list-style:none;} .content {border:1px solid #ddd; width:300px; padding:20px 40px 60px 20px; margin:30px auto;} .list {width:300px; overflow-x:hidden;} .list ul {margin:-1px 0 0 -1px; width:300px;} .list ul li {width:99px; height:160px; float:left; border-top:1px solid #ddd; border-left:1px solid #ddd; text-align:center;} </style> <title>CSS六宫格的写法</title> </head> <body> <div class="content"> <div class="list"> <ul class="clearfix"> <li>A</li> <li>B</li> <li>C</li> <li>D</li> <li>E</li> <li>F</li> </ul> </div> </div> </body> </html> ```