如何停止CSS连字,单词之间不要连字符 [英] how to stop CSS hyphenation, no dash between words

查看:68
本文介绍了如何停止CSS连字,单词之间不要连字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何停止将单词连字符

例如:
Supercalifragilis-

ticexpialidocious

e.g: Supercalifragilis-
ticexpialidocious

应该只是超级校准性

从CSS Tricks中尝试了以下CSS,但它似乎不起作用,尤其是在野生动物园中。任何帮助???

tried the css below from CSS Tricks but it doesnt seem to be working, especially on safari. any help???

 -ms-word-break: break-all;
 word-break: break-all;

 // Non standard for webkit
 word-break: break-word;

 -webkit-hyphens: auto;
 -moz-hyphens: auto;
 hyphens: auto;


推荐答案

尝试

-webkit-hyphens:manual;
-moz-hyphens:manual;
hyphens:manual;

让他们进入汽车会导致问题

putting them on auto is causing the issue

您也可以使用

  -moz-hyphens: none;
  -ms-hyphens: none;
  -webkit-hyphens: none;
  hyphens: none;

这篇关于如何停止CSS连字,单词之间不要连字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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