- percentage:
- if the containing block element is specified a
height
, thepercentage
is based on thecontaining element's height
- if the containing block element is not specified a
height
, equal toauto
,meaning the size will be based on theheight of the content
- if the content requires more height than if could has from the containing element, the effect will be influenced by
overflow
property
- if the containing block element is specified a
- w3school
- 教程里关键的部分是提取
实战
中各个元素的常见用处 - 可以拿一些
大厂的网页
来做分析,对应标签和属性进行学习