- 原因:元素设置了width:100%然后又设置了margin或者padding可以撑大盒子的边距。此时在ios就会出现横向滚动条
- 解决给盒子加box-sizing: border-box
- 全局加
page, view, scroll-view, swiper, movable-area, cover-view, text, icon, rich-text,
progress, button, checkbox-group, checkbox, form, input, label, picker,
picker-view, radio-group, slider, switch, textarea, navigator, audio, image,
video, live-player, live-pusher, open-data, web-view {
box-sizing: border-box;
}