white-space

在html中white-space是什么
JavaScript

在html中white-space是什么

84 0

在html中white-space属性用来指定元素内的空白怎样处理,如【white-space:normal】,表示空白会被浏览器忽略掉。如果需要保留空白,可以使用【white-space:pre】。本文操作环境:windows10系统、html 5、thinkpad t480电脑。属性介绍:white-space属性指定元素内的空白怎样处理。属性值:normal 默认。空白会被浏览器忽略。