zoukankan      html  css  js  c++  java
  • 10.28代码

    1、

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    error page;
    </body>
    </html>

    2、

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <style type="text/css">
    body{
    background:url("./test.jpg");
    background-repeat:repeat;
    background-size:1200px 600px;
    background-position-center:100%;
    }
    </style>
    </head>

    <body>
    <form action="PanCourse.jsp" method="get">
    <table align="center" border="1">
    <tr>
    <td colspan="2">课程名称<input type="text" name="name"/>
    </td>
    <tr>
    <td colspan="2">任课教师<input type="text" name="teacher"/>
    </td>
    </tr>
    <tr>
    <td colspan="2">上课地点<input type="text" name="place"/>
    </td>
    </tr>

    <tr>
    <td align="center" colspan="2">
    <input type="submit" value="保存"/></td>
    </tr>
    </table>
    </form>
    <br><br><br><br><br>
    <script language = "javascript">
    function jump2(){
    window.location.href = "hello2.jsp";
    }
    function jump3(){
    window.location.href = "hello3.jsp";
    }
    </script>
    <br>
    <form>
    请输入需要的操作:
    <input type ="button" value = "跳转1" onclick="jump2()" >
    <input type ="button" value = "跳转2" onclick="jump3()" >
    </form>
    </body>
    </html>

    3、

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <style type="text/css">
    body{
    background:url("./test.jpg");
    background-repeat:repeat;
    background-size:1200px 600px;
    background-position-center:100%;
    }
    </style>
    </head>
    <body>
    <script language = "javascript">
    function jump1(){
    window.location.href = "hello1.jsp";
    }
    </script>
    <br>
    <form>
    This is hello2.jsp.
    <input type ="button" value = "返回" onclick="jump1()" >
    </form>
    </body>
    </html>

    4、

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <style type="text/css">
    body{
    background:url("./test.jpg");
    background-repeat:repeat;
    background-size:1200px 600px;
    background-position-center:100%;
    }
    </style>
    </head>

    <body>
    <script language = "javascript">
    function jump1(){
    window.location.href = "hello1.jsp";
    }
    </script>
    <br>
    <form>
    This is hello3.jsp.
    <input type ="button" value = "返回" onclick="jump1()" >
    </form></body>
    </html>

    5、

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>User Login Page</title>
    </head>
    <body>
    <hr><br>Welcome to this <font color="green">Login Page</font>!<br>
    <form action="error.jsp" method="get">
    <br>
    <h1>Please input your message:</h1><br>
    用户名: <input type="text" name="name"><br>
    密码: <input type="password" name="password"><br>
    <br><br><br>
    <input type="submit" value="登陆">
    <input type="reset"><br>

    </form>

    </body>
    </html>

  • 相关阅读:
    采购申请 POCIRM-001:ORA-01403: 未找到任何数据
    前后端交互技术有哪些
    React实现类似淘宝tab居中切换效果
    CSS通过text-transform实现大写、小写和首字母大写转换
    从浏览器内部运行机制看性能优化
    设置网页浏览器标签小图标
    前后端分离的优缺点
    修改input搜索框默认叉号的样式为自定义图片
    编写优秀CSS代码的8个策略
    css如何设置不可复制?
  • 原文地址:https://www.cnblogs.com/lx06/p/14164952.html
Copyright © 2011-2022 走看看