Flash在加上xhtml文档声明的html文件中用不着100%来设定高度.在IE中没有问题,在Firefox中就使100%高度无效.一种做法是去除html文档最前面的文档声明。如果不去除xhtml的文档声明,加上一段CSS就可以解决问题。
html{height:100%;}
其实使用xhtml的DTD不但使CSS的设置会出现问题,而且会使用html下的JS在xhtml下也可能出现问题。其中最常见是xhtml的滚动条的样式在body里设置也是无效,也得用html下设置。
Tags: firefox, flash
This entry was posted on 星期三, 一月 9th, 2008 at 00:20 and is filed under xhtml+css. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
哈哈,这个解决方案太强了,
3Q3Q,我的问题叫决了
受教,解决了我的问题,非常感谢!
来访,谢谢
Name (required)
Mail (will not be published) (required)
Website
哈哈,这个解决方案太强了,
3Q3Q,我的问题叫决了
受教,解决了我的问题,非常感谢!
来访,谢谢