61,115
社区成员
发帖
与我相关
我的任务
分享
<div id="mainbox">
<table class="edittable" cellpadding="0" cellspacing="1">
<thead>
<tr>
<td width="24%">填写类别</td>
<td>填写内容</td>
</tr>
</thead>
<tbody>
<tr>
<td class="lefttd">
<div class="leftcell">账号:</div>
</td>
<td>
<div class="rightcell">
<input type="text" value="" />
<font color="red">*</font>
</div>
</td>
</tr>
<tr>
<td class="lefttd">
<div class="leftcell">密码:</div>
</td>
<td>
<div class="rightcell">
<input type="text" value="" />
<font color="red">*</font>
</div>
</td>
</tr>
</tbody>
</table>
</div>
body
{
font-size:14px;
}
#headline
{
width:350px;
border-bottom:#348abb 1px solid;
font-size:14px;
font-weight:bold;
height:27px;
}
#headline div
{
float:left;
}
#headline .text
{
padding-left:12px;
padding-top:5px;
color:#35568b;
}
#mainbox
{
width:350px;
padding-left:20px;
padding-top:15px;
font-size:12px;
text-align:left;
font-weight: normal;
}
.datatable, .edittable
{
width:100%;
font-size:12px;
}
.edittable thead
{
color:#FFF;
height:20px;
font-weight:bold;
text-align:center;
background-color: #348abb;
}
.edittable tbody .leftcell
{
color:#365480;
background-color:#dce4ef;
margin-top:2px;
padding-top:4px;
height:16px;
}
.edittable tbody .rightcell
{
color:#365480;
padding-left:12px;
margin-top:2px;
background-color:#dce4ef;
height:20px;
}
.edittable tbody td
{
height:22px;
}
.edittable tbody .lefttd
{
text-align: center;
}
.edittable input
{
font-size:12px;
border:#a8c7ce 1px solid;
width:150px;
}
<div id="mainbox">
<table class="edittable" cellpadding="0" cellspacing="1">
<tr>
<th width="24%">填写类别</th>
<th>填写内容</th>
</tr>
<tr>
<td class="lefttd">
<div class="leftcell">账号:</div>
</td>
<td>
<div class="rightcell">
<input type="text" value="" />
<font color="red">*</font>
</div>
</td>
</tr>
<tr>
<td class="lefttd">
<div class="leftcell">密码:</div>
</td>
<td>
<div class="rightcell">
<input type="text" value="" />
<font color="red">*</font>
</div>
</td>
</tr>
</table>
</div>
<div id="mainbox">
<table class="edittable" cellpadding="0" cellspacing="1">
<tr>
<th width="24%">填写类别</td>
<th>填写内容</td>
</tr>
<tr>
<td class="lefttd">
<div class="leftcell">账号:</div>
</td>
<td>
<div class="rightcell">
<input type="text" value="" />
<font color="red">*</font>
</div>
</td>
</tr>
<tr>
<td class="lefttd">
<div class="leftcell">密码:</div>
</td>
<td>
<div class="rightcell">
<input type="text" value="" />
<font color="red">*</font>
</div>
</td>
</tr>
</table>
</div>