简单语句实现DIV+CSS分两列(多列)布局显示
<style type="text/css">
.my ul {
width: 210px;
}
.my li {
width: 100px;
/*如果显示三列 则width改为70px*/
float: left;
display: block;
}
</style>
<div class="my">
<ul>
<li>那些花儿</li>
<li>那些花儿</li>
<li>那些花儿</li>
<li>那些花儿</li>
<li>那些花儿</li>
<li>那些花儿</li>
</ul>
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“美国生活”用户上传并发布,本平台仅提供信息存储服务。如果侵犯了您的版权,请联系平台删除。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of "MyUSLife". If any content violates your rights, please contact the administrator to remove it.