Aren’t the values defined by width and height fixed? How to change the value of padding so that the size of the box changes? -PHP Chinese website Q&A-Aren’t the values defined by width and height fixed? How to change the value of padding so that the size of the box changes? -PHP Chinese website Q&A
Aren’t the values defined by width and height fixed? How to change the value of padding so that the size of the box changes? -PHP Chinese website Q&A-Aren’t the values defined by width and height fixed? How to change the value of padding so that the size of the box changes? -PHP Chinese website Q&A
Please watch and learn.
我们所设置的div 的width、height 是div里面内容部分的宽和高,而设置的padding是在内容之外的填充,需要注意的是:padding和border会把div撑大