啥都不说,先上代码
<html> <head> <title>index</title> <meta content = 'text/html'; charset = 'utf-8'> </head> <body bgcolor = 'grey'> <frameset cols = '*, *' frameborder = 'yes' border = '10'> <frameset rows = '*, *' frameborder = 'yes' border = '5'> <frame src = 'top.html' name = 'top' scrolling = 'auto'></frame> <frame src = 'bottom.html' name = 'bottom' scrolling = 'auto'></frame> </frameset> <frame src = 'right.html'> <noframes> Sorry, your browser is too low! </noframes> </frameset> </body> </html>
上面的代码在浏览器中不会显示任何子窗口,后来发现原因在于frameset被嵌套在了<body>标签中,都是习惯惹的祸,因此需要注意,frameset千万不能嵌套在<body>标签中,否则不会显示任何字窗口。