<!-- make sure the link block fulfill the whole container -->
a {display:block;float:left;border:1px solid #ccc; width:48%}
<!-- work great in width:400px; -->
<div id=container1 style="width:400px">
<a href="" >first element</a>
<a href="" >second element</a>
</div>
<!-- not good! no enough space for second link block in my situation test in firefox-->
<div id=container1 style="width:200px">
<a href="" >first element</a>
<a href="" >second element</a>
</div>
那么,有没有一种方法,使他们全部完成,并通过侧不同宽度的容器对准侧!?
非常感谢!
完美!非常感谢你!! – qinHaiXiang 2011-02-13 06:53:32