jsp中frame标签若出现在body标签内,则无法正常运行.

来源:互联网 发布:中国会不会解体 知乎 编辑:程序博客网 时间:2024/06/02 15:40

jsp中frame标签若出现在body标签内,则无法正常运行.

错误例子:

<html>


<head>
<title>前台首页</title>
</head>

<body>
<frameset rows="25%,*">
<frame src="${pageContext.request.contextPath }/client/head.jsp" name="head">
<frame src="${pageContext.request.contextPath }/client/body.jsp" name="body">
</frameset>

</body>

</html>


修改后

<html>


<head>
<title>前台首页</title>
</head>

<frameset rows="25%,*">
<frame src="${pageContext.request.contextPath }/client/head.jsp" name="head">
<frame src="${pageContext.request.contextPath }/client/body.jsp" name="body">
</frameset>


</html>


0 0
原创粉丝点击