text-align justify不工作 [英] text-align justify not working

查看:191
本文介绍了text-align justify不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图证明这个p标签中的文字,使其完全符合p的宽度。

I'm trying to justify the text within this p tag so that it perfectly fits the width of the p.

<p align="justify" style="text-align: justify !important; color:#fff; margin:0px; font-weight:bold; width:487px; border:Solid 1px red;">blah blah blah</p>

但文字不能对齐!任何想法为什么?

but the text just wont justify! any idea why?

感谢您的帮助。

推荐答案

t跨越多条线,调整不做任何事情。您的文本必须换行到下一行,然后第一行将合理,但不是第二行。

If your text doesn't span more than one line, justifying doesn't do anything. Your text has to wrap to the next line, and then the FIRST line will be justified, but not the second.

这篇关于text-align justify不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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