兄弟姐妹,我想做一个类似qq游戏的框架,但是自己又没用过框架,不会用,所以请各位帮帮忙,非常感谢
框架分为上中下,而中间又分为左右两部分,中间的就类似qq游戏了

解决方案 »

  1.   

    用frameset或是iframe 去网上搜范例代码即可
      

  2.   


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>框架</title>
    </head><frameset rows="80,*,80" frameborder="no" border="1" >
      <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
     <frameset rows="*" cols="*,900" framespacing="0" frameborder="no" border="0">
      <frame src="left.html" name="mainLeftFrame" scrolling="no" noresize="noresize" id="mainLeftFrame" title="mainLeftFrame" />
    <frame src="right.html" name="mainRightFrame" scrolling="no" noresize="noresize" id="mainRightFrame" title="mainRightFrame"/>
     </frameset>
      <frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
    </frameset>
    <noframes><body>
    </body>
    </noframes>
    </html>
      

  3.   

    用frame和iframe都可以<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <title>框架</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">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
      
      </head>
        <frameset rows="50,*" >
       <frame src="topic.jsp" noresize="noresize" >
       <frameset cols="210,*">
       <frame id="liftFrame"  noresize="noresize" name="liftFrame" src="leftTree.jsp">
    <frame id="contentFrame" name="contentFrame" src="main.jsp">
       </frameset>
      </frameset></html>
      

  4.   

    frameset主框架iframe小容器组成不同框架啥 
      

  5.   

    你要做成B/s的还是c/s的?c/s的话还是用swing吧