文本对齐对齐但向右? [英] Text-align justify but to the right?

查看:20
本文介绍了文本对齐对齐但向右?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们想让 text-align:justify 占据列的所有宽度,但它应该从右侧开始.有什么办法可以用 css 或以某种方式制作它吗?.

We want to make text-align:justify, to take all the width of the column, but it should start from the right side. Is there any way to make it with css or somehow?.

按照建议http://jsfiddle.net/dVbJr/33/

.text {
  text-align: justify;
  direction:rtl;
}

有效,但标点符号有问题.

works, but it has punctuation issue.

已解决

    <span style="float:right">...</span>

最后附上这个,解决了标点问题.感谢大家的努力!那么我将接受第一个答案.

This to be attached in the end has solved the punctuation issue. Thanks for effort though to everyone! I shall accept the first answer then.

推荐答案

我相信你可能想要这样的:

I believe you might want something like this:

direction:rtl;
text-align:justify;

示例:http://jsfiddle.net/aew75/

这篇关于文本对齐对齐但向右?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆