<%@ 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 5 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</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">
-->
<style type="text/css">
.div-Height{
border:1px solid #F00;
width:260px;
height:30px;
}
</style>
</head>
<body>
<form action="servlet/MyServlet" method="post">
<div class="div-Height">
<img alt="" src="name.png" width="30" height="30">
<input type="text" id="text" name="name" placeholder="邮箱账号或手机号">
</div>
<div class="div-Height">
<img alt="" src="pwd.png" width="30" height="30">
<input type="password" name="pwd" placeholder="密码"><br>
</div>
<div>
<input type="submit" value="Enter" id="enter">
</div>
</form>
</body>
</html>
pardon110
相关分类