日期:2014-05-17  浏览次数:20704 次

CSS直接输入的Excel表格
HTML Excel表格可以直接输入。。。


--------------------------------
HTML:

<!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=gb2312" />
<title>无标题文档</title>
<style>
table.formdata{
border:1px solid #5F6F7E;
border-collapse:collapse;
font-family:Arial;
}

table.formdata caption{
text-align:left;
padding-bottom:6px;
}

table.formdata th{
border:1px solid #5F6F7E;
background-color:#E2E2E2;
color:#000000px;
text-align:left;
font-weight:normal;
padding:2px 8px 2px 6px;
margin:0px;
}

table.formdata td{
margin:0px;
padding:0px;
border:1px solid #ABABAB;
}

table.formdata input{
width:100px;
padding:1px 3px 1px 3px;
margin:0px;
border:none;
font-family:Arial;
}
</style>
</head>

<body>
<form method="post">
	<table class="formdata">
		<caption>公司销售统计表</caption>
		<tr>
			<th></th>
			<th scope="col">2004</th>
			<th scope="col">2005</th>
			<th scope="col">2006</th>
			<th scope="col">2007</th>
		</tr>
		
		<tr>
			<th>硬盘</th>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
		</tr>
		
		<tr>
			<th>硬盘</th>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
		</tr>
		
		<tr>
			<th>硬盘</th>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
		</tr>
		
		<tr>
			<th>硬盘</th>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
		</tr>
		
		<tr>
			<th>硬盘</th>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
		</tr>
		
		<tr>
			<th>硬盘</th>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
		</tr>
		
		<tr>
			<th>硬盘</th>
			<td><input type="text" name="harddisk2004" id="harddisk2004"/></td>
			<td&