Why do the CSS width and height properties not adjust for padding?

后端 未结 5 1114
自闭症患者
自闭症患者 2020-12-01 15:24

So first a bit of meat to set the scene:

HTML

test
5条回答
  •  [愿得一人]
    2020-12-01 15:37

    To answer your question, I think the logic is that it is all about the content; if you specify dimensions, these are the dimensions that the content is going to get.

    But in the end it is just a choice that was made and that´s what we have to work with.

提交回复
热议问题