本文介绍了证明文字正确吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试提出一个示例,以不同的对齐方式进行实验作为演示。如我的演示所示,很容易使文本居左,居中,居右,居中和居中左对齐:
I'm trying to come up with an example that experiments with different alignments as a demonstration. It's easy to left, center, right, justify, and center-left-justify text, as seen in my demonstration:
您可以看到以下示例。如何在不弄乱标点的情况下获取右对齐的文本? (注意中间对齐的文本的最后一行左侧的句点。)
You can see this example here on JSBin. How can I get right-justified text without the punctuation getting messed up? (Notice the period to the left on the last line of the center-right-justified text.)
推荐答案
这应该适用于IE(仅):
This should work in IE (only):
text-align: justify;
text-align-last: right;
看起来没有很好的跨浏览器解决方案,但这可能会有所帮助:
It doesn't look like there is a great cross-browser solution, but this might help:
这篇关于证明文字正确吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!