在IntelliJ Idea中HTML格式化时,默认以及下的以及标签都不会缩进。
解决方法:editor->code style->HTML->other->Do not indent children of 删掉这几项就可以了。