table表格简单样式设置



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.table {
width: 500px;
margin-top: 30px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
body {text-align:center;}


div {text-align:left;margin:0 auto;}
</style></head>


<body>
<div class="table">
<form id="form1" name="form1" method="post" action="judge.php">
  
  <table width="500"  border="1" style="border-collapse: collapse; width: 100%">
  <tr>
    <td colspan="2" align="center"><h2>亨亿轩珠宝</h2></td>
    </tr>
  <tr>
    <td colspan="2" align="right" bgcolor="#D3EBAB" height="5px">&nbsp;</td>
    </tr>
  <tr>
    <td align="right">特等奖数量:</td>
     <td> <input type="text" name="te"   
    style="width: 180px; height: 26px;font-size:20px;  border: solid 1px green"
    οnkeyup="this.value=this.value.replace(/\D/g,'')" 
  onafterpaste="this.value=this.value.replace(/\D/g,'')"
    />
       个</td>
  </tr>
  <tr>
    <td align="right">一等奖数量:</td>
    <td> <input type="text" name="yi"   
    style="width: 180px; height: 26px;font-size:20px;  border: solid 1px green"
    οnkeyup="this.value=this.value.replace(/\D/g,'')" 
  onafterpaste="this.value=this.value.replace(/\D/g,'')"
    />
    个</td>
  </tr>
  <tr>
    <td align="right">二等奖数量:</td>
     <td> <input type="text" name="er"   
    style="width: 180px; height: 26px;font-size:20px;  border: solid 1px green"
    οnkeyup="this.value=this.value.replace(/\D/g,'')" 
  onafterpaste="this.value=this.value.replace(/\D/g,'')"
    />
       个</td>
  </tr>
  <tr>
    <td align="right">三等奖数量:</td>
     <td> <input type="text" name="san"   
    style="width: 180px; height: 26px;font-size:20px;  border: solid 1px green"
    οnkeyup="this.value=this.value.replace(/\D/g,'')" 
  onafterpaste="this.value=this.value.replace(/\D/g,'')"
    />
       个</td>
  </tr>
    <td align="right">谢谢参与数量:</td>
     <td> <input type="text" name="thank"   
    style="width: 180px; height: 26px;font-size:20px;  border: solid 1px green"
    οnkeyup="this.value=this.value.replace(/\D/g,'')" 
  onafterpaste="this.value=this.value.replace(/\D/g,'')"
    />
       个</td>
  </tr>
  <tr>
    <td  colspan="2" align="right" bgcolor="#94E2E4"height="5px">&nbsp;</td>
    </tr>
  <tr>
    <td align="right">转动圈数:</td>
    <td><input type="text" name="num"   
    style="width: 180px; height: 26px;font-size:20px;  border: solid 1px green"
    οnkeyup="this.value=this.value.replace(/\D/g,'')" 
  onafterpaste="this.value=this.value.replace(/\D/g,'')"
    />
      圈</td>
  </tr>
  <tr>
    <td align="right">转动时间:</td>
    <td><input type="text" name="time"   
    style="width: 180px; height: 26px;font-size:20px;  border: solid 1px green"
    οnkeyup="this.value=this.value.replace(/\D/g,'')" 
  onafterpaste="this.value=this.value.replace(/\D/g,'')"
    />
      秒</td>
  </tr>
  </table>
  
  <table width="500">
  <tr>
    <td colspan="3"  align="right" height="20"></td>
    </tr>
  <tr>
    <td  align="right"><input type="reset" value="重 置"
style="width: 116px; height: 36px; font-size: 23px; border: solid 1px #3285FD; background-color: #3285FD; color: white" /></td>
    <td width="100"></td>
    <td><input type="submit" value="提 交"
style="width: 116px; height: 36px; font-size: 23px; border: solid 1px #3285FD; background-color: #3285FD; color: white" /></td>
  </tr>
</table>
</form>
</div>
<span class="table"></span>




</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值