HTML 导航框架

2018-06-24 00:41:12来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

首页效果图

  

点击链接一效果图

  

 代码结构

  

index.jsp

  

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>frameset</title>
    <link href="logo.ico" rel="shortcut icon" type="image/x-icon" />
  </head>
  <frameset rows="25%,50%,25%" cols="*">
      <frame src="top.jsp"/>
      <frameset rows="*" cols="25%,75%">
          <frame src="left.jsp"/>
          <frame src="right.jsp" name="showframe"/>
      </frameset>
      <frame src="bottom.jsp"/>
  </frameset>
</html>

top.jsp

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>top</title>
    <link href="logo.ico" rel="shortcut icon" type="image/x-icon" />
  </head>
  <body>
      top...
  </body>
</html>

left.jsp

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>left</title>
    <link href="logo.ico" rel="shortcut icon" type="image/x-icon" />
  </head>
  <body>
      <a href="link1.jsp" target="showframe">链接一</a><br/>
      <a href="link2.jsp" target="showframe">链接一</a><br/>
      <a href="link3.jsp" target="showframe">链接一</a>
  </body>
</html>

right.jsp

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>right</title>
    <link href="logo.ico" rel="shortcut icon" type="image/x-icon" />
  </head>
  <body>
      welcome...
  </body>
</html>

bottom.jsp

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>bottom</title>
    <link href="logo.ico" rel="shortcut icon" type="image/x-icon" />
  </head>
  <body>
      bottom...
  </body>
</html>

link1.jsp

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>link1</title>
    <link href="logo.ico" rel="shortcut icon" type="image/x-icon" />
  </head>
  <body>
      link1...
  </body>
</html>

link2.jsp

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>link2</title>
    <link href="logo.ico" rel="shortcut icon" type="image/x-icon" />
  </head>
  <body>
      link2...
  </body>
</html>

link3.jsp

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>link3</title>
    <link href="logo.ico" rel="shortcut icon" type="image/x-icon" />
  </head>
  <body>
      link3...
  </body>
</html>

 

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Sass学习日志

下一篇:CSS选择器