如何设置jsp文件的输入框居中(小白一枚需要完整代码) 75
<%@pagelanguage="java"import="java.util.*"pageEncoding="utf-8"%><!DOCTYPEHTMLPUBLIC"-...
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>登录注册页面</title>
</head>
<body >
<form action="DengluServlet" method="post" style="padding-top:-700px;">
用户名:<input type="text" name="name"value=""><br><br>
密码: <input type="password" name="pwd"value=""><br><br>
<input type="submit"value="登录"name="denglu"><input type="reset"value="重置"><br>
</form>
<form action="zhuce.jsp">
<input type="submit"value="新用户注册">
</form>
</body>
</html> 展开
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>登录注册页面</title>
</head>
<body >
<form action="DengluServlet" method="post" style="padding-top:-700px;">
用户名:<input type="text" name="name"value=""><br><br>
密码: <input type="password" name="pwd"value=""><br><br>
<input type="submit"value="登录"name="denglu"><input type="reset"value="重置"><br>
</form>
<form action="zhuce.jsp">
<input type="submit"value="新用户注册">
</form>
</body>
</html> 展开
2018-07-20
展开全部
<div align="center">
<form action="DengluServlet" method="post" style="padding-top:-700px;">
用户名:<input type="text" name="name" value=""><br>
密 码:<input type="password" name="pwd" value=""><br>
<input type="submit" value="登录" name="denglu"><input type="reset" value="重置"><br>
</form>
</div>
在表单外面加个div 设置 align属性: center.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询