10081413 发表于 2010-3-5 19:09:11

关于页面框架,求解

<!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>
<base href="<?php echo base_url(); ?>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>员工绩效信息管理平台</title>
</head>
<frameset rows="127,*,40" frameborder="no" border="0" framespacing="0">
<frame src="<?php echo site_url('e_assess/top'); ?>" name="topFrame" scrolling="No" noresize="noresize" id="topFrame">
<frame src="<?php echo site_url('e_assess/center'); ?>" name="mainFrame" id="mainFrame">
<frame src="<?php echo site_url('e_assess/footer'); ?>" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame">
<noframes>
<body>你的浏览器必须支持框架才能正常显示!</body>
</noframes>
</frameset>
</html>
以上是页面代码,在IE下显示白板,框架都不显示
以下是源文件:
<!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>
<base href="http://192.168.0.17/jwt/"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>员工绩效信息管理平台</title>
</head>
<frameset rows="127,*,40" frameborder="no" border="0" framespacing="0">
        <frame src="http://192.168.0.17/jwt/index.php/e_assess/top" name="topFrame" scrolling="No" noresize="noresize" id="topFrame">
        <frame src="http://192.168.0.17/jwt/index.php/e_assess/center" name="mainFrame" id="mainFrame">
        <frame src="http://192.168.0.17/jwt/index.php/e_assess/footer" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame">
<noframes>
<body>你的浏览器必须支持框架才能正常显示!</body>
</noframes>
</frameset>
</html>

Hex 发表于 2010-3-5 19:11:31

URL 没问题,清下缓存试试?

10081413 发表于 2010-3-5 19:20:26

没有用,在GOOGLE浏览器下是正常的,IE和火狐都是白板,写错了什么?

lamtin 发表于 2010-3-5 23:12:31

经过测试 html没错的说~

huboo82 发表于 2010-3-5 23:49:32

也许把doctype改一下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

10081413 发表于 2010-3-6 14:09:40

lamtin 是啊,把那个源文件弄成HTML是正常的,汗了,奇怪得很

huboo82 doctype改成你的也不行,还是白板

avinmo 发表于 2010-3-19 15:10:58

请把你的<body>去掉试试。

jackbang 发表于 2010-5-16 15:16:02

是啊,不知道为什么啊,是个白板啊,我也是遇到这个问题,改了好多次都不行,一样的问题,困扰很久了,不能用框架,很郁闷啊!

jackbang 发表于 2010-5-16 15:18:46

那位大虾帮帮忙啊,老是用HTML来做框架页,没办法用PHP,只能写些JS来替代,头痛啊!

jackbang 发表于 2010-5-16 15:30:05

huboo82 说的正解,就是<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">我的框架可以正常显示了,不再光板了,谢谢!
页: [1]
查看完整版本: 关于页面框架,求解