(1)表单设计
<body>
<div id="top">
<b>PHP 实现解压缩 zip 文件并下载</b>
</div>
<div id="main">
<form action="index.php" method="post">
<table id="tbshow">
<tr>
<td><input type="submit" class="sub"
id="sub1" name="subjieya" value="点击解压"></td>
<td><input type="submit" class="sub"
name="subyasuo" value="点击压缩并下载"></td>
</tr>
</table>
</form>
</div>
</body>
(2)样式设计(CSS 样式)
body{
cellpadding:0;
cellspacing:0;
margin:0;
padding:0;
background-color: white;
}
#top{
height:100px;
background-color: #CCCCFF;
line-height:100px;
text-align:center;
font-size:22px;
-webkit-box-shadow: 5px 5px 5px #CCCCCC;
-moz-box-shadow: 5px 5px 5px #CCCCCC;
box-shadow:5px 5px 5px #CCCCCC;
}
#main{
margin:auto;
font-size:14px;
line-height:2em;
}
#tbshow{
margin:50px auto;
line-height:2em;
}