1、页面无doctype声明,运行在Quirks mode下,这个模式下的东西最好放弃研究跟
使用。
2、关于百分比高度,请参考:
http://www.w3.org/TR/CSS21/visudet.html#the-height-property
<percentage>
Specifies a percentage height. The percentage is calculated with
respect to the height of the generated box's containing block. If the
height of the containing block is not specified explicitly (i.e., it
depends on content height), and this element is not absolutely
positioned, the value computes to 'auto'. A percentage height on the
root element is relative to the initial containing block. Note: For
absolutely positioned elements whose containing block is based on a
block-level element, the percentage is calculated with respect to the
height of the padding box of that element. This is a change from CSS1,
where the percentage was always calculated with respect to the content
box of the parent element.
【 在 Goofect (1 Win TO GO!) 的大作中提到: 】
: 没明白你指的是什么
: 那个例子确实解决了我提的那个问题.
: IE7/Firefox/Chrome下都行.
: ...................
--
FROM 114.243.222.*