流体定位布局2 this is a testthis is a second testaaaa
于是,我试着进行修改,如果把width:80%修改成width:500px;相应的比例就可以生效。
流体定位布局2 this is a testthis is a second testaaaa
但是,如果只修改height:80%修改为height:500px;仍然不能占到相应的比例
流体定位布局2 this is a testthis is a second testaaaa
有木有大神,能够解释下,谢啦~
回复讨论(解决方案)
可能原因:
1.没有给body定义宽度和高度,无法得到是谁的80%.
2.非标准html不识别百分比,标准的是xhtml.