问题在vue 组件中 height: calc(100vh - 100px);得到的结果是:height: calc(0vh);解决calc 中特殊处理,添加 ~和 “ ,如下: height: calc(~"100vh - 100px");