Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duzhicai_homework #4

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

infinityboy
Copy link

pull request Infinityboy:master

@infinityboy
Copy link
Author

学生杜志才的作业

@ztl
Copy link

ztl commented Dec 12, 2016

表头单元格可以用 th 标签,表格也可以加一些样式美化。

<style> .my-schedule{ border-collapse: collapse; width: 400px; } .my-schedule th{ padding: 3px 0; background: #ddd; } .my-schedule td{ text-align: center; border: 1px solid #ddd; margin: 0; padding: 3px 0; } .my-schedule td:first-child{ background: #ddd; } </style>

<table class="my-schedule"> <tr> <th></th> <th>星期一</th> <th>星期二</th> <th>星期三</th> <th>星期四</th> <th>星期五</th> </tr> <tr> <td>1.</td> <td>数学</td> <td>英语</td> <td>物理</td> <td>化学</td> <td>生物</td> </tr> <tr> <td>2.</td> <td>数学</td> <td>物理</td> <td>生物</td> <td>物理</td> <td>语文</td> </tr> <tr> <td>3.</td> <td>物理</td> <td>数学</td> <td>语文</td> <td>生物</td> <td>化学</td> </tr> <tr> <td>4.</td> <td>数学</td> <td>化学</td> <td>语文</td> <td>物理</td> <td>生物</td> </tr> <tr> <td>5.</td> <td>数学</td> <td>英语</td> <td>物理</td> <td>化学</td> <td>生物</td> </tr> <tr> <td>6.</td> <td>物理</td> <td>数学</td> <td>语文</td> <td>生物</td> <td>化学</td> </tr> <tr> <td>7.</td> <td>物理</td> <td>数学</td> <td>语文</td> <td>生物</td> <td>化学</td> </tr> <tr> <td>8.</td> <td>数学</td> <td>数学</td> <td>语文</td> <td>生物</td> <td>化学</td> </tr> </table>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants