欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

frameset布局時(shí)frame中src路徑的頁面沒有加載的解決方法

 更新時(shí)間:2013年10月28日 16:30:40   作者:  
使用frameset布局時(shí),frame 中src路徑的頁面沒有加載的情況,想必大家都有感觸吧,下面是具體的解決方法,感興趣的朋友可以參考下
解決方法:將頁面的body節(jié)點(diǎn)去掉,錯(cuò)誤代碼如下
復(fù)制代碼 代碼如下:

<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>主頁</title>
</head>
<body>
<frameset rows="15%,70%,15%" frameborder="yes" >
<frame scrolling="auto" src="IndexTop.jsp"></frame>
<frame scrolling="auto" src="IndexMain.jsp"></frame>
<frame scrolling="auto" src="IndexBottom.jsp"></frame>
</frameset>
</body>
</html>

由于frameset是一種框架結(jié)構(gòu),將整個(gè)頁面占據(jù)掉,不要用body進(jìn)行布局

相關(guān)文章

最新評論