search

Home  >  Q&A  >  body text

为什么盒子会随着填充增大而增大?

checkcheck2985 days ago1175

reply all(3)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:30:52

    Why does the box grow as the filling increases? -PHP Chinese website Q&A-Why does the box increase as the filling increases? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-21 17:08:59

    因为盒子模型就是包括宽高、填充(padding)、边框(border)和外边距(margin)的。盒子的宽度=左边界+左边框+左填充+内容宽度+右填充+右边框+右边界。填充变大之后,宽和高都会增大的

    reply
    2
  • 迷茫

    迷茫2016-12-21 17:08:32

    因为盒子模型就是包括宽高、填充(padding)、边框(border)和外边距(margin)的。盒子的宽度=左边界+左边框+左填充+内容宽度+右填充+右边框+右边界。填充变大之后,宽和高都会增大的

    reply
    1
  • Cancelreply