我需要一个固定跨度的例子:CSS fixed width in a span
引用:
<li><span></span> The lazy dog.</li>
<li><span>AND</span> The lazy cat.</li>
<li><span>OR</span> The active goldfish.</li>作者想要:
The lazy dog.
AND The lazy cat.
OR The active goldfish.但是如果我有很长的剩余部分:
The lazy dog.
ANDDDDDDDDDDDDDD The lazy cat.
OR The active goldfish.但我真的需要:
The lazy dog.
ANDDDDDDDDDDDDDD The lazy cat.
OR The active goldfish.有可能吗?
发布于 2012-08-28 03:34:22
像这样的东西对你来说是可行的
尝试模仿表格显示
li{
display:table-row;
}
li span{
display:table-cell;
text-align:right;
padding-right:5px;
}https://stackoverflow.com/questions/12148108
复制相似问题