Using frameset frame borders in jsp does not allow the size of borders to change

  • 2020-12-13 19:03:00
  • OfStack


<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> My test </title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0"> 
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>

<!-- Add the frame result to the head Just after the tag, one of them frame To introduce the jsp File with the usual jsp file 1 sample -->
<frameset rows="12%,*" >
<frame name="sel" src="XXX.jsp" marginwidth="5" marginheight="5" scrolling="Auto" frameborder="0" bordercolor="#0000FF">
<frame name="info" src="XXXX.jsp">
  </frameset>
<body>

</body>
</html>

ps: We sometimes want to keep the border size from changing on our layout page, so that we can add noresize="noresize" to frame to do the job.

This is jsp using the frameset frame layout. Here I have a question to discuss with you.

Why is frameset inside the body tag not effective? It is necessary to put it after the head tag to achieve the layout effect of jsp page?

If you know why, help me out. Thank you for reading.


Related articles: