参考代码:
<!DOCTYPE html><html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
table {
border-collapse: collapse
}
table, tr, td, th {
border: 4px solid black
}
th, td {
width: 200px
height: 50px
text-align: center
}
</style>
</head>
<body>
<table>
<tr style="height: 100px">
<td colspan="3">
<span style="display: blockpadding: 10pxborder: 3px solid blackwidth: 500pxfont-size: 23pxmargin: autofont-weight: bold">扫码文本框</span>
</td>
<td><span style="display: blockwidth: 70pxmargin: auto">加载历史入库信息</span></td>
</tr>
<tr>
<th>产品名称</th>
<th>装箱数量</th>
<th>箱数<span style="font-size: 10px">(默认1箱)</span></th>
<th>1</th>
</tr>
<tr>
<td>A</td>
<td>100</td>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>B</td>
<td>100</td>
<td>1</td>
<td rowspan="4"></td>
</tr>
<tr>
<td>A</td>
<td>100</td>
<td>1</td>
</tr>
<tr>
<td>合计:</td>
<td>300</td>
<td>3</td>
</tr>
<tr>
<td colspan="3"><span style="display: blockpadding: 5pxborder: 3px solid blackwidth: 500pxfont-size: 20pxmargin: autofont-weight: bold">确认</span></td>
</tr>
</table>
</body>
</html>
效果如下图:
其实如果做表格,还是table更优越。不过还是为你做了一个div+css表格。希望对你有所帮助。<!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/htmlcharset=utf-8" />
<title>无标题文档</title>
<style>
#table{
float:left
width:800px
border-left:#999999 1px solid
border-top:#999999 1px solid
}
#table li{
float:left
width:399px
list-style:none outside
border-bottom:#999999 1px solid
border-right:#999999 1px solid
text-align:center
}
</style>
</head>
<body>
<div id="table">
<li>123</li>
<li>123</li>
<li>123</li>
<li>123</li>
<li>123</li>
<li>123</li>
</div>
</body>
</html>