HTML证明text-align with tag

我在带有格式和固定宽度的段落中的text-align“justify”有问题,因为我希望 HTML中的段落文本看起来完全合理(就像MS Word文件一样).但是,这不会发生.我需要修改什么来实现它?
<pre style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: medium; width: 500px; text-align: justify;"> 

I have a problem with the text-align "justify" inside a paragraph with format and fixed width,because I want the paragraph text in HTML to appear totally justified (like it would happen with a MS Word file). However,this does not happen. What I need to modify to achieve it?

        </pre>

编辑:如果我替换< pre>标记为< p>标签,我的代码工作正常.有人可以解释一下为什么吗?也许我错误地使用了< pre>标签.

解决方法

为了证明< pre>中文本的合理性你需要添加空格:正常;在你的风格,但在我看来这使用< pre>错过了重点.标签.

– 编辑 –

而不是< pre>标签你可以使用< div>适当的风格.它可以模仿< pre>标签非常好,更容易玩.

相关文章

vue阻止冒泡事件 阻止点击事件的执行 &lt;div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些