Solve the problem that the inner margin on the right side of the mobile terminal and uni-app does not take effect during development

foreword

  • It is because it is not a box model, so the padding on the right will not take effect. Setting it to a box model solves the problem.

Code solution - css

// 设置盒子模型-解决右边内边距不生效
 box-sizing:border-box; 

Guess you like

Origin blog.csdn.net/weixin_53579656/article/details/131117342