简体   繁体   English

是否存在HTML标签对齐的问题?

[英]Is there such thing as HTML tab alignment?

It is nice in word processors to create short-term column layouts with documents by using tab key with the defined anchors across the top instead of using tables because you can run overlaps like this. 在文字处理程序中,最好使用Tab键,使定义的锚定在顶部,而不是使用表,从而创建带有文档的短期列布局,而不是使用表,因为这样可以运行重叠。

L                                      R
column a row 1          column a row two
this is the first column!   on the right

This allows for overlap, or naturally spanning columns without the need for so much structure. 这允许重叠或自然跨越的列,而不需要太多的结构。 Great when you don't need borders. 不需要边界时很好。

Can this layout be done in HTML? 可以使用HTML完成此布局吗? I know a tabbed layout can be accomplished on a webpage, what I don't know is if you can set the column locations like you can in StarOffice/LibreOffice/OpenOffice Text or in Microsoft Word. 我知道可以在网页上完成选项卡式布局,但我不知道是否可以像在StarSuite / LibreOffice / OpenOffice Text或Microsoft Word中那样设置列位置。

结合使用带有float:left和float:right样式的div标签,可以实现这种类型的结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM