/* app.scss */ /* 针对 H5 端进行强制宽度限制 */ /* #ifdef h5 */ html { background-color: #f7f8fa !important; } body { max-width: 480PX !important; margin: 0 auto !important; background-color: #fff !important; box-shadow: 0 0 20PX rgba(0, 0, 0, 0.2) !important; min-height: 100vh !important; position: relative !important; left: 0 !important; right: 0 !important; } /* 确保根容器也遵循宽度 */ #app, .taro_router { width: 100% !important; max-width: 480PX !important; margin: 0 auto !important; } /* #endif */ /* #ifdef weapp */ .index { background-color: #f7f8fa; } /* #endif */