What are the exceptions where the width of a block-level element does not rely on the width of its parent?
http://www.quirksmode.org/mobile/viewports.html:
Normally, all block-level elements take 100% of the width of their parent (there are exceptions, but let’s ignore them for now). So the
<body>is as wide as its parent, the<html>element.
What are the exceptions where the width of a block-level element when set to 100% does not give us the same 开发者_高级运维width of its parent?
Assuming the default setting of width: auto (for obvious reasons), one exception I can think of is when the child element's computed position is anything other than static or relative.
Another exception I can think of is with floated child elements: these are always crunched to the minimum content width unless you manually set their width property.
加载中,请稍侯......
精彩评论