<!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>
</head>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
img {
border: none;
}
table {
border-collapse: collapse;
}
body {
background: #ffffff;
}
form {
width: 522px;
height: 575px;
margin: 50px auto;
}
form table th {
width: 140px;
text-align: right;
font-family: 宋體;
font-size: 13px;
font-weight: normal;
vertical-align: top;
}
form table td {
width: 382px;
text-align: left;
font-family: 宋體;
font-size: 11px;
color: #8a8a8a;
font-weight: normal;
vertical-align: top;
}
form table th.row1 {
height: 91px;
padding-top: 9px;
height: 82px;
}
form table th.row2 {
height: 73px;
padding-top: 9px;
height: 64px;
}
form table th.row3 {
height: 73px;
padding-top: 9px;
height: 64px;
}
form table th.row4 {
height: 73px;
padding-top: 9px;
height: 64px;
}
form table th.row5 {
height: 73px;
padding-top: 9px;
height: 64px;
}
form table th.row6 {
height: 87px;
padding-top: 9px;
height: 78px;
}
form table th.row7 {
height: 42px;
}
form table th.row8 {
height: 63px;
}
form table th span {
font-size: 8px;
color: #ee0000;
}
form table input {
width: 260px;
height: 31px;
border: 1px solid #868686;
}
form table select {
width: 262px;
height: 33px;
border: 1px solid #868686;
}
form table td span.explain {
display: inline-block;
padding-top: 7px;
}
form table td span.explainadd {
font-size: 13px;
text-decoration: underline;
display: inline-block;
padding-top: 9px;
}
form table td input.yanzheng {
width: 133px;
height: 31px;
vertical-align: top;
}
form table td img.yangzheng {
vertical-align: top;
}
form table td input.inputcheck {
width: 12px;
height: 12px;
}
form table td img.regmiddle {
padding-top: 13px;
}
</style>
<body>
<form action="">
<table>
<tbody>
<tr>
<th class="row1">
<span>*</span>
常用郵件地址:
</th>
<td>
<input type="text">
<br />
<span class="explain">支持你的常用郵箱,如[email protected]</span>
<br />
<span class="explainadd">
<a href="#">還沒郵箱?立即註冊網易郵箱</a>
</span>
</td>
</tr>
<tr>
<th class="row2">
<span>*</span>
設置密碼:
</th>
<td>
<input type="password">
<br />
<span class="explain">6到16個字符,區分大小寫。</span>
</td>
</tr>
<tr>
<th class="row3">
<span>*</span>
確認密碼:
</th>
<td>
<input type="password">
<br />
<span class="explain">再次輸入你設置的密碼。</span>
</td>
</tr>
<tr>
<th class="row4">
<span>*</span>
密碼保護問題:
</th>
<td>
<select name="" id="">
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
<br />
<span class="explain">密碼保護問題用於幫助你找回登陸密碼。</span>
</td>
</tr>
<tr>
<th class="row5">
<span>*</span>
你的答案:
</th>
<td>
<input type="text">
<br />
<span class="explain">4到30個字符,區分大小寫,一個漢字佔兩個字符。</span>
</td>
</tr>
<tr>
<th class="row6">
<span>*</span>
驗證碼:
</th>
<td>
<input type="text" class="yanzheng">
<img src="img/yanzheng.png" alt="" class="yanzheng"/>
<br />
<span class="explain">
不區分大小寫。看不清楚可以
<a href="#">換一個</a>
</span>
</td>
</tr>
<tr>
<th class="row7"></th>
<td>
<input type="checkbox" class="inputcheck"/>
我同意
<a href="#">"服務條款"</a>
和
<a href="#">"隱私保護和個人信息利用政策"</a>
</td>
</tr>
<tr>
<th class="row8"></th>
<td>
<img src="img/reg.png" alt="" class="regmiddle"></td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
07_07表單Demo3
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.