CSS white-space 属性

在html页面填入字符串,\n换行不起作用,怎么办?
在white-space属性中,有上图几个值可供选择,我们可以在DOM元素中使用white-space: pre-line;
这样在html页面填入字符串,\n换行就起作用了。

相关文章:

  • 2021-08-18
  • 2021-12-17
  • 2021-08-02
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2021-08-07
  • 2023-04-03
  • 2021-12-11
  • 2022-12-23
相关资源
相似解决方案