练习打卡ing

来源:4-8 自由编程

qq_慕后端6458515

2020-09-14 21:20:05

<!DOCTYPE html>
<html>
<head>
    <title>first.html</title>
</head>
<body>
    <table border="2px" width="600px">
        <caption>课程表</caption>
        <thead>
            <tr>
            <th></th>
            <th>星期一</th>
            <th>星期二</th>
            <th>星期三</th>
            <th>星期四</th>
            <th>星期五</th>
        </tr>
        </thead>
        <tbody>
            <tr>
            <th rowspan="2">上午</th>
            <th>语文</th>
            <th>数学</th>
            <th>外语</th>
            <th>数学</th>
            <th>语文</th>
        </tr>
        <tr>
            
            <th>数学</th>
            <th>外语</th>
            <th>语文</th>
            <th>历史</th>
            <th>政治</th>
        </tr>
        <tr>
            <th colspan="6">休息</th>
        </tr>
        <tr>
            <th rowspan="2">下午</th>
            <th>历史</th>
            <th>体育</th>
            <th>音乐</th>
            <th>政治</th>
            <th>美术</th>
        </tr>
        <tr>
            
            <th>班会</th>
            <th>自习</th>
            <th>自习</th>
            <th>自习</th>
            <th>自习</th>
        </tr>
        
        </tbody>
        <tfoot>
            <tr>
            <th colspan="6">晚自习</th>
            
        </tr>
        </tfoot>
    </table>
</body>
</html>


写回答

1回答

好帮手慕阿慧

2020-09-15

同学你好,上午和下午的4行中文字需要居左显示。同学可以在<tr>标签中添加align="left"

以上午为例,参考代码如下:

http://img.mukewang.com/climg/5f60228109c1579203120385.jpg

如果我的回答解决了你的疑惑,请采纳!祝学习愉快!

0

0 学习 · 16556 问题

查看课程

相似问题