这是我的代码:
<html>
<head>
<style type="text/css">
ul {list-style:none; margin:0; padding:0; }
li{ float:left; background-color:#444444; text-align: center; width: 100px;
border-right:1px solid white; color: white; }
li ul li { float: none;
border-top:1px solid white;}
li ul { visibility:hidden; position: absolute;}
li:hover ul {visibility:visible;}
</style>
</head>
<body>
<ul>
<li>home</li>
<li id="up">pages
<ul class="down">
<li>a</li>
<li>b</li>
<li>c</li>
</ul>
</li>
</ul>
</body>
</html>
在 li ul 部分,如果我只放置可见性:隐藏,它不会隐藏在那里仍然有一列,为什么?