search

Home  >  Q&A  >  body text

css - 文字内容间隔宽度(同时含英文和中文)

一段话里面大多数是中文,要设置每个字之间间隔为5px ,但是其中又有可能含有英文单词,如果用letter-spacing ,英文每个字母都会间隔开,用word-spacing又对中文不起作用,请问怎么办?

迷茫迷茫2779 days ago639

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 11:53:44

    Most of them are in Chinese, so use a tag to add class to wrap the English part, and add the word-soacing attribute to class

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:53:44

    Use a letter-spacing style to wrap English words

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:53:44

    The criterion for word-spacing is spaces...so, either add tags or spaces...

    reply
    0
  • Cancelreply