首页 > 其他 > 详细

常用表格编写

时间:2016-07-12 15:08:55      阅读:277      评论:0      收藏:0      [点我收藏+]

记录两种表格

<div>
<center>
	<form action="">
	用户名:<input type="text" name="text" id="name" >
	<br/>
    密  码:   <input type="password" name="text" id="password">
    <br/>
	<input type="submit"/>
	<input type="reset"/>
	</form>
</center>
</div>

  &nbsp;可以向页面输入一个空格,调整格式。

技术分享

<%@ 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">
<%@taglib prefix="s" uri="/struts-tags"%>
<html> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登陆</title>
</head>
<body>
<center>
    <s:actionerror />
    <s:form action="login">
    
    <s:textfield name="username" label="用户名"></s:textfield>
    <s:password name="password" label="密码"> </s:password>
    
    <s:submit value="提交"/>
    <s:reset value="重置"/>
    </s:form>
</center>    
</body>
</html>

实用了s标签库

技术分享

s标签库还是不懂怎么调整按钮的位置,只能搞成一列

 

常用表格编写

原文:http://www.cnblogs.com/chentingk/p/5663436.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!