border影响盒子大小-解决办法:

解决办法:

测量的时候不测量边框
带边框测量,到时候width,height再减去border

原文地址:https://www.cnblogs.com/icemiaomiao3/p/14177475.html