What is the box model of css?

The innermost box in the figure is the actual content of the element, that is, the element box, and the inner margin padding is next to the outside of the element box. Next is the border, and then the outermost layer is the margin, which constitutes the box model as a whole. Usually the background display area we set is the range of content, padding, and border. The outer margin margin is transparent and will not block other surrounding elements. Then, the total width of the element box = the width of the element (element) + the value of the left and right margins of the padding + the value of the left and right margins of the margin + the left and right width of the border; The total height of the element box = the height of the element (element) + the value of the upper and lower margins of padding + the value of the upper and lower margins of margin + the upper and lower width of border. We can transfer these attributes to the boxes (boxes) in our daily life to understand. The boxes we see in our daily life are also boxes that can…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索