CSS连字符不在Chrome中工作



在我的项目段落中(在p tag中)我给出了文本align:Justify;但是在某些语言中,有更多空间来了,所以对于这个解决方案,我尝试:HTML代码:

<p>What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>

CSS代码:

p{
    text-align:justify;
    word-break: break-all;
    hyphens: auto;
}

但是,在此代码中,Mozilla起作用,但在Chrome中不起作用,为此,我尝试

p{
    text-align:justify;
    -ms-word-break: break-all; 
    word-break: break-all; 
    word-break: break-word; 
   -webkit-hyphens: auto; 
   -moz-hyphens: auto; 
   hyphens: auto;
}

在那里的CSS下方-webkit-用于Chrome权利,但仍无法使用,请提供解决方案……

这是Chrome中的Windows,Linux和Chromeos中的已知错误。

最新更新