<%@ page language="java" import=".*" 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 results to add the framework toheadJust after the label,Among themframeTo be introducedjspDocuments and normaljspLike file--> <frameset rows="12%,*" > <frame name="sel" src="" marginwidth="5" marginheight="5" scrolling="Auto" frameborder="0" bordercolor="#0000FF"> <frame name="info" src=""> </frameset> <body> </body> </html>
ps: Sometimes we may have to do a good job of the page we have laid out, so that we can add the noresize="noresize" attribute to the frame to realize the functions.
This is jsp using frameset framework layout. Here I have a question to discuss with you:
Why does frameset have no effect in the body tag? You must place it behind the head tag to achieve the layout effect of the jsp page?
If you know why, please help me answer. Thank you for reading.