我正在尝试制作一个不错的 CSS 菜单栏。问题在于每个按钮是在它自己的元素中还是在
如果你去 www.adversign.co.za/steps.jpg
我试过浮动:左;我已经用 clear:both 试过了;我已经用 display:inline-block 试过了;以及显示:块;但我所做的一切似乎都没有将 div 的顶部对齐在相同的高度。
请有人帮忙。我的代码是这样的:
<div id="list">
<li><a href="index.html"> </a></li>
<li><a href="about.html"> </a></li>
</div> 
和 CSS:
#list a { 
float:left; 
display: inline; 
list-style:none; 
background:url(images/home1.png) no-repeat; 
background-position:top left; 
width:104px; 
height:109px; 
font-size:1px; 
color:#000; 
text-decoration:none; 
margin-left:0px;
} 
#list a:hover{ 
background:url(images/home2.png) no-repeat; 
text-decoration:none;