-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css] 第66天 元素竖向的百分比设置是相对容器的高度吗? #404
Labels
css
css
Comments
不是,一般是根据宽度来的,像padding-top,padding-bottom |
<div style="height: 600px; width: 600px;">
<img style="height: 100%; width: auto; max-with: 500px;">
</div> |
父级非 auto 的 height 时,子级百分比的 height 才有效。 |
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
第66天 元素竖向的百分比设置是相对容器的高度吗?
The text was updated successfully, but these errors were encountered: