og

text标签出现中英文自动换行

text标签出现中英文自动换行.jpg

问题:CSS(小程序)text标签出现中英文自动换行

1629445273.jpg 解决方法:

        
  • 1
  • 2
  • 3
.breakall{ word-break: break-all; }

Snipaste_20210820_160724.png

关于word-break:break-all和word-wrap:break-word

word-break:break-all 强制断了单词断行 Snipaste_20210820_160516.png !

word-wrap:break-word 碰到单词换行 Snipaste_20210820_160506.png

Article at   2021/08/30 15:51  Published  code  Category,viewed  62  times

Relevant tags:    CSS    小程序 

Address:   https://www.kedong.me/article/55

Copyright Notice: Freely reproduced for non-commercial use