您的位置:首页 > Web前端 > JavaScript

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

2015-02-22 16:42 232 查看
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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  frame标签
相关文章推荐