问题的说明
将width: 100vh用于外部元素后,内部边距无法正常显示。 这种情况下的代码是
view class=' content ' view class=' main ' 14/view/view.content { height 3360100 VH; width: 100vh; position: relative; 背景色: # f1f0f 6; }.main { background-color : # fff; 位置: absolute; width: 80%; margin: 0 10%; }修正
view class=' content ' view class=' main ' 14/view/view.content { height 3360100 VH; width: 100%; position: relative; 背景色: # f1f0f 6; }.main { background-color : # fff; 位置: absolute; width: 80%; margin: 0 10%; }