<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=GBK" /> <meta http-equiv="Content-Language" content="zh-CN" /> </head> <frameset id="gl2010" framespacing="0" border="1" frameborder="no"> <frame src="http://www.gl.gov.cn/Series/glga/index.html"> </frameset> <body> </body> </html>
ie9这样显示的话高度上会有问题。。。。会出现排版上高度错乱!!!
正常这个页面打开不会有问题。。。。在ie8下也没有问题,但是这个在ie9下就有这样的问题。。
各位大虾怎么解决啊????
答案:1、放上这个<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
2、标准的作法
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
换成 <html>
xhtml 1.0 标准不兼容 frameset
加入 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
就是使用ie7渲染模式,老浏览器当然能兼容老标签。