|
|
ru.website- RU.WEBSITE ------------------------------------------------------------------- From : Serge Shikov 2:5020/400 14 Jul 2002 18:55:22 To : abrasha shapirus Subject : Re: opera и поддержка css --------------------------------------------------------------------------------
abrasha shapirus wrote:
>
> вот интересно мне, это глюки оперы или мои глюки в части понимания css.
>
> имеем код:
>
> <div style="border: 2px dashed red; width: 100px;">
> <div style="width: 50px; height: 50px; float: right; background:
> green;"></div> </div>
10.6.3 Block-level, non-replaced elements in normal flow, and floating,
non-replaced elements
...
If 'height' is 'auto', the height depends on whether the element has any
block-level children. If it only has inline-level children, the height
is from the top of the topmost line box to the bottom of the bottommost
line box. If it has block-level children, it is the distance from the
top border-edge of the topmost block-level child box, to the bottom
border-edge of the bottommost block-level child box. Only children in
the normal flow are taken into account (i.e., floating boxes and
absolutely positioned boxes are ignored, and relatively positioned boxes
are considered without their offset).
Короче, это про подсчет высоты блоков. Из последнего предложения видно,
что плавающие дочерние блоки не учитываются. height очевидно либо
inherit (по умолчанию), либо auto, что в сущности тоже самое для данного
случая.
--- ifmail v.2.15dev5
* Origin: Demos online service (2:5020/400)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.website/2825a268c4fa.html, оценка из 5, голосов 10
|