CSS:align:对齐和空白:pre-wrap

时间:2018-10-17 16:53:57

标签: css whitespace text-alignment

我无法使用空白:pre-wrap来证明文本合理性

<?php
 $mytext = 'The global race towards superfast "fifth generation" mobile internet, known as 5G, is entering a key phase. The trouble is no-one knows exactly which technologies will be best for offering such a service. But one telecoms firm may just have had a light-bulb moment.

            At its headquarters in Slough, O2 has installed an unusual demo. It is a room where a wireless internet connection is provided not through wi-fi, but li-fi - a system that transmits data through light waves rather than radio waves.

            The mobile operator thinks the system may help to offer 5G speeds in certain locations where getting coverage from an outdoor mobile signal is difficult.';
?>
    <p id="idtext" style="text-align: justify;white-space:pre-wrap;overflow-wrap: break-word;"><?php echo(trim($mytext));?></p>

感谢您的帮助

0 个答案:

没有答案