CSS实现列表横向显示

时间:2015/12/2 15:12:00来源:互联网 作者:flyso 点击: 958 次
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>www.flyso.cn--横向显示列表</title>
<style type="text/css">
ul{
border: 1px solid #666666;
list-style-position: outside;
margin: 0px;
padding:5px;
list-style-type: none;
width:600px;
}
li{
margin:0px;
float:left;
}
div{
clear: both;
}
 </style>
</head>
 
<body>
<ul>
<li>www.flyso.cn一</li>
<li>www.flyso.cn二</li>
<li>www.flyso.cn三</li>
<li>www.flyso.cn四</li>
<li>www.flyso.cn五</li>
<li>www.flyso.cn六</li>
<div></div>
</ul>
</body>
</html>


Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3