首页 新闻 会员 周边

导航栏(css)

0
悬赏园豆:20 [已关闭问题] 关闭于 2019-03-27 16:17

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
*{
margin: 0;
}
ul{
margin: 0;
width: 100%;
height: 30px;
list-style-type:none;

    }
     ul li{
        display: block;
        width: 40px;
        height: 30px;
        float;
     }
</style>
       

</head>

<body>
<ul>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
</ul>
</body>
</html>

我这个导航栏为什么不能横向

星星0828的主页 星星0828 | 初学一级 | 园豆:52
提问于:2019-03-27 16:14
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册