老师为什么我的表格高度宽度都设置了没反应呢?
html
<!DOCTYPE html> <html> <head> <title>3-2作业</title> <link rel="stylesheet" type="text/css" href="3-2css.css"> </head> <body> <table class="body"> <thead> <tr> <td><img src="img/logo.png"/></td> </tr> </thead> <tbody> <table> <tr> <td> <p>商品管理</p> <p>评价管理</p> <p>咨询管理</p> <br/> <br/> <p>全部订单</p> <p>已完成订单</p> <p>待处理订单</p> <p>今日物流</p> <br/> <br/> <p>月考核</p> <p>季度考核</p> <p>年度考核</p> </td> <td> <table class="dingdan"> <tr> <td>全部订单</td> </tr> </table> <table class="chaxun"> <tr> <td>查询:<input type="date" name="date"/>至<input type="date" name="date"/></td> </tr> </table> <table class="list"> <tr> <td colspan="2">宝贝信息</td> <td>订单数量</td> <td>单价</td> <td>买家</td> <td>下单时间</td> <td>实付款</td> <td>订单操作</td> </tr> <tr> <td><img src="img/txue.png"/></td> <td>2019新款个性男女潮牌imooc慕春之行文化衫</td> <td>2</td> <td>120</td> <td>小明</td> <td>2019-2-21 21:54</td> <td>240</td> <td>待付款</td> </tr> <tr> <td><img src="img/xie.jpg"/></td> <td>2019新款个性男女潮牌imooc慕春之行运动鞋</td> <td>2</td> <td>120</td> <td>小李子</td> <td>2019-2-21 19:04</td> <td>240</td> <td>未发货</td> </tr> <tr> <td><img src="img/txue.png"/></td> <td>2019新款个性男女潮牌imooc慕春之行文化衫</td> <td>2</td> <td>120</td> <td>小红</td> <td>2019-2-21 16:54</td> <td>240</td> <td>待发货</td> </tr> <tr> <td><img src="img/xie.jpg"/></td> <td>2019新款个性男女潮牌imooc慕春之行运动鞋</td> <td>2</td> <td>120</td> <td>可乐</td> <td>2019-2-21 14:30</td> <td>240</td> <td>未发货</td> </tr> <tr> <td><img src="img/txue.png"/></td> <td>2019新款个性男女潮牌imooc慕春之行文化衫</td> <td>2</td> <td>120</td> <td>魏明</td> <td>2019-2-21 14:30</td> <td>240</td> <td>未发货</td> </tr> <tr> <td><img src="img/xie.jpg"/></td> <td>2019新款个性男女潮牌imooc慕春之行运动鞋</td> <td>2</td> <td>120</td> <td>李晓雨</td> <td>2019-2-21 14:30</td> <td>240</td> <td>未发货</td> </tr> <tr> <td><img src="img/txue.png"/></td> <td>2019新款个性男女潮牌imooc慕春之行文化衫</td> <td>2</td> <td>120</td> <td>艳艳</td> <td>2019-2-21 14:30</td> <td>240</td> <td>未发货</td> </tr> <tr> <td><img src="img/xie.jpg"/></td> <td>2019新款个性男女潮牌imooc慕春之行运动鞋</td> <td>2</td> <td>120</td> <td>片片</td> <td>2019-2-21 14:30</td> <td>240</td> <td>未发货</td> </tr> <tr> <td><img src="img/txue.png"/></td> <td>2019新款个性男女潮牌imooc慕春之行文化衫</td> <td>2</td> <td>120</td> <td>小兰</td> <td>2019-2-21 14:30</td> <td>240</td> <td>未发货</td> </tr> <tr> <td><img src="img/xie.jpg"/></td> <td>2019新款个性男女潮牌imooc慕春之行运动鞋</td> <td>2</td> <td>120</td> <td>魏璎珞</td> <td>2019-2-21 14:30</td> <td>240</td> <td>未发货</td> </tr> <tr> <td><img src="img/txue.png"/></td> <td>2019新款个性男女潮牌imooc慕春之行文化衫</td> <td>2</td> <td>120</td> <td>小慕</td> <td>2019-2-21 14:30</td> <td>240</td> <td>未发货</td> </tr> <tr> <td><img src="img/txue.png"/></td> <td>2019新款个性男女潮牌imooc慕春之行文化衫</td> <td>2</td> <td>120</td> <td>小苏</td> <td>2019-2-21 14:30</td> <td>240</td> <td>未发货</td> </tr> </table> </td> </tr> </table> </tbody> <tfoot> <tr> <td>2019-9-21 ©imooc.com</td> </tr> </tfoot> </table> </body> </html>
css
*{padding: 0;margin: 0;} table{border:1px solid;width: 100%;} tr,td{border:1px solid;} thead tr{height: 60px;background-color: #169bd5;} thead img{line-height: 60px;} tbody td:nth-of-type(1) {width: 12%;vertical-align: top;} tbody td:nth-of-type(2) {width: 88%;} tbody td:nth-of-type(1) p{padding-left: 10px;padding-top: 10px;} tbody td:nth-of-type(1) p:nth-of-type(4){font-weight: bold;} .dingdan tr{height: 50px;} .chaxun tr{height: 50px;} .list img{height: 54px;} .list tr:nth-of-type(1) td:nth-of-type(1){height: 54px;width: 200px;}
0
收起
正在回答 回答被采纳积分+1
2回答
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星