发表于: 2017-03-20 23:57:42
2 666
今天完成的任务:
1.做了一个九宫格,为小格子设定一个具体的px高度和宽度。
明日计划完成的任务:
1.再多看看浮动
收获:
<!DOCTYPE html>
<html>
<head>
<title>Sudoku</title>
<style type="text/css">
td{height:100px;width:100px; }
#leftUp{background-color:yellow;}
#upCenter{background-color:yellow;}
#rightUp{background-color:yellow;}
#centerLeft{background-color:yellow;}
#center{background-color:yellow;}
#centerRight{background-color:yellow;}
#leftDown{background-color:yellow;}
#downCenter{background-color:yellow;}
#rightDown{background-color:yellow;}
</style>
</head>
<body>
<table>
<tr>
<td id="leftUp"></td>
<td id="upCenter"></td>
<td id="rightUp"></td>
</tr>
<tr>
<td id="centerLeft"></td>
<td id="center"></td>
<td id="centerRight"></td>
</tr>
<tr>
<td id="leftDown"></td>
<td id="downCenter"></td>
<td id="rightDown"></td>
</tr>
</table>
</body>
</html>
评论