Open joey123456y opened 1 week ago
盒子属性 - 大小 width/height 边框属性 -border :black solid 10px -padding :px px px -margin :px px px :auto - 居中展示 (文字无效)
-代表0像素 盒子大小为200x100 加上边框大小为220x120 box-sizing:属性 取值border-box - 确保盒子不被边框撑大
div大小为200x100 可放置标签区域大小只有169*69
浏览器默认 外边距margin是0 - 导致各div粘连
盒子属性 - 大小 width/height 边框属性 -border :black solid 10px -padding :px px px -margin :px px px :auto - 居中展示 (文字无效)