问题
How do the various options for css position (static, relative, absolute, fixed) impact the way percentage width/height is calculated? This question may be too generic to provide a concrete answer, and it's possible that the answer is "the two are not directly related", but I'm having trouble understanding the impacts of css position on element size.
Links to related questions/answers are welcome.
回答1:
I recommend that you read A List Apart's CSS Positioning article. It's the best article I've seen on the web.
来源:https://stackoverflow.com/questions/8455190/how-does-css-position-impact-element-width-height