How does css position impact element width/height?

删除回忆录丶 提交于 2019-12-07 07:13:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!