How is padding-top as a percentage related to the parent's width?

后端 未结 5 2114
[愿得一人]
[愿得一人] 2020-11-29 05:35

Here is an example:

http://jsfiddle.net/QZAd8/1/

Notice how all of the red divs are the same height and have padding-top:100%;, yet

5条回答
  •  伪装坚强ぢ
    2020-11-29 06:01

    Just because it's the way it is suppose to be :) http://www.w3.org/TR/CSS2/box.html#propdef-padding-top

提交回复
热议问题