css文字两端对齐

  .title{
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;  // edge,firefox下分割字符
    white-space: normal;  // nowrap会使text-align: justify失效
    height: 1em;

    &:after {
      content: '';
      display: inline-block;
      width: 100%;  // 会使text-align-last失效
      height: 0;
      overflow: hidden;
    }
  }

  

相关文章:

  • 2021-11-21
  • 2021-11-21
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2021-11-21
  • 2021-11-21
  • 2021-11-21
相关资源
相似解决方案