Why is only top and bottom padding subtracted from the height of an element with box-sizing?

后端 未结 0 1082
忘掉有多难
忘掉有多难 2021-02-19 06:15

For the logo we have padding: 10px 15px; which is 50px, so should it not be 70 - 50 instead of 70 - 20? I think I\'m just confused how box-sixing is calculated here.



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题