[英]Same space between words in multiple lines
I guess this problem is very simple to solve, but I don't know what to search for.. 我想这个问题很容易解决,但是我不知道要搜索什么。
I want to have always the same space between words in multiple lines. 我希望多行单词之间始终有相同的空间。 Like invisible tables, but I want to avoid tables.
就像不可见的表格一样,但是我要避免使用表格。
Example: 例:
01.01.1999 Text
02.01.1999 Text gdfgf
03.01.99 Text gfghdh
How would you do this? 你会怎么做?
PS: I need a solution which applies on each row, because the data is delivered row per row through serverside scripts. PS:我需要一种适用于每一行的解决方案,因为数据是通过服务器端脚本逐行传递的。
You could use the <pre>
tag, unless you're looking for special formatting within each row. 您可以使用
<pre>
标记,除非您要在每一行中寻找特殊格式。 Description lists <dl>
maybe another option in that case. 在这种情况下,描述列表
<dl>
可能是另一个选择。
<pre>
01.01.1999 Text
02.01.1999 Text gdfgf
03.01.99 Text gfghdh
</pre>
Technically you could place a span (with the same class) around the text that you want to pad out and give the span the same width so that it pushes the other text out. 从技术上讲,您可以在要填充的文本周围放置一个跨度(具有相同的类),并为跨度提供相同的宽度,以便将其他文本推出。 for example:
例如:
span{
width:100px;
display: block;
float:left;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.