【小练习2】如何制作“表格”

<!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 type="text/css">
td{ text-align:center}
</style>
</head>

<body>

<table border="1" width="300" height="200">
    <tr>
    <
th rowspan="4">早餐类</th>
    <
th colspan="2">价格表</th>
  </
tr> <tr>
    <
td>汉堡</td>
    <
td>25元</td>
  </
tr> <tr>
    <
td>三明治</td>
    <
td>25元</td>
  </
tr> <tr>
    <
td>土司</td>
    <
td>25元</td>
  </
tr> </table> </body> </html>

 

posted @ 2015-09-28 23:04  75-逢场作戏  阅读(135)  评论(0编辑  收藏  举报