前端实现整段文本所有行缩进 代码如下: <template> <div class="indent"> 测试文本缩进测试文本缩进测试文本缩进测试文本缩进测试文 本缩进测 试文本缩进测试文本缩进测试文本缩进 </div> </template> <style lang="less" scoped> .indent { width: 200px; //text-indent: 2em; //首行缩进 //所有行缩进 text-align: justify; padding-left: 2em; } </style>