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

在IntelliJ Idea中HTML格式化时,默认<head><body>以及<body>下的以及标签都不会缩进。
转载于:https://www.cnblogs.com/FengZeng666/p/11570405.html