Coo*_*ter 4 css html-lists
我试图在我的<li>横向上传播一个水平对齐的列表.float:left<ul>
<li>
float:left
<ul>
有谁知道这是怎么做的?
aro*_*oth 7
你有什么理由不能将它们设置为display: inline;(或inline-block)吗?例如:
display: inline;
inline-block
http://jsfiddle.net/TKmR5/
Coo*_*ter 7
答案是使用display: table;上的<ul>元素,并display: table-cell;在<li>元素.
display: table;
display: table-cell;
归档时间:
14 年,2 月 前
查看次数:
19562 次
最近记录:
9 年,9 月 前