当前位置: 代码迷 >> Web开发 >> frameset中frame摘引的页面无法显示.
  详细解决方案

frameset中frame摘引的页面无法显示.

热度:86   发布时间:2012-12-14 10:33:08.0
frameset中frame引用的页面无法显示...
index.jsp页面如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>myproject</title>
</head>
<frameset cols="2,8">
<frame src="left.jsp" name="left">
<frame src="userinfo.jsp" name="right">
</frameset>
</html>
其中left.jsp、userinfo.jsp与index.jsp在同一个文件夹内。
在地址栏打开index.jsp无法显示left、userinfo页面,为什么呢??

但能够单独打开left、userinfo...

------最佳解决方案--------------------
换一下DOCTYPE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<frameset cols="2,8">
<frame src="left.jsp" name="left">
<frame src="userinfo.jsp" name="right">
</frameset> 

------其他解决方案--------------------
嗯嗯,真是doctype的问题!!
问题解决喇,谢谢您!!!
------其他解决方案--------------------
看看如何解禁额
------其他解决方案--------------------
为什么我的换了也还是显示不了呢。郁闷了
  相关解决方案