1. 程式人生 > >css div子元素劇中

css div子元素劇中

css

<style type="text/css" media="screen">

div {display: inline-block;background-color: grey;}

ul {list-style: none;display: table;margin:0 auto;background-color: yellow;padding: 0px;}

li {display: table-cell;background-color:blue; }

</style>

<div style="width: 800px;width: 800px;">

<ul>

<li>abc</li>

<li>abc</li>

<li>abc</li>

<li>abc</li>

<li>abc</li>

<li>abc</li>

</ul>

<ul>

<li>abc</li>

<li>abc</li>

<li>abc</li>

<li>abc</li>

<li>abc</li>

</ul>

<ul>

<li>abc</li>

<li>abc</li>

<li>abc</li>

<li>abc</li>

</ul>

<ul>

<li>abc</li>

<li>abc</li>

<li>abc</li>

</ul>

<ul>

<li>abc</li>

<li>abc</li>

</ul>

<ul>

<li>abc</li>

</ul>

</div>


本文出自 “11042448” 博客,請務必保留此出處http://11052448.blog.51cto.com/11042448/1947823

css div子元素劇中