Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试提出一个示例,以尝试不同的对齐方式作为演示。左、中、右、对齐和左对齐文本很容易,如我的演示中所示:
你可以在 JSBin 上看到这个例子。如何在不弄乱标点符号的情况下获得正确对齐的文本?(注意中间右对齐文本最后一行左侧的句点。)
这应该在 IE 中工作(仅):
text-align: justify; text-align-last: right;
看起来没有一个很好的跨浏览器解决方案,但这可能会有所帮助:
对齐 div 的最后一行?