虚线的宽高为你实际指定的width和height 虚线外的白色区域为padding 红色区域为border的width 红色外的区域为margin 转载于:https://www.cnblogs.com/webyun/p/8398975.html