html写一个table表

  金牌会员 | 2024-6-11 10:00:22 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 507|帖子 507|积分 1521


HTML代码:
  1.           <div class="table_box w-full">
  2.             <div class="title_top">XX表</div>
  3.             <div class="title_btm">(
  4.               <input class="input input_1" type="text">
  5.               xxxx)
  6.             </div>
  7.             <table class="table w-full">
  8.               <thead>
  9.                 <tr>
  10.                   <td style="width: 50%;" colspan="5">
  11.                     时间:
  12.                     <input class="input input_2" type="text" maxlength="4">
  13.                     年
  14.                     <input class="input input_3" type="text" maxlength="2">
  15.                     月
  16.                     <input class="input input_4" type="text" maxlength="2">
  17.                     日 星期
  18.                     <input class="input input_5" type="text" maxlength="1">
  19.                   </td>
  20.                   <td style="width: 50%;" colspan="5">
  21.                     <div class="w-full flex items-center">
  22.                       <div class="w-1/2  flex items-center">
  23.                         地点:
  24.                         <input class="input input_6" type="text">
  25.                       </div>
  26.                       <div class="w-1/2  flex items-center">
  27.                         方式:
  28.                         <input class="input input_6" type="text">
  29.                       </div>
  30.                     </div>
  31.                   </td>
  32.                 </tr>
  33.                 <tr style="position: relative">
  34.                   <td style="width: 100%;" colspan="10">
  35.                     <br /><br />
  36.                     评审人:<input class="input input_7" type="text">
  37.                     <br /><br /><br />
  38.                     参加人员:<input class="input input_8" type="text">
  39.                     <br /><br /><br />
  40.                   </td>
  41.                   <div
  42.                     style="position: absolute;bottom: 0;right: 0;display: flex;align-items: center;cursor: pointer;padding: 2px;font-size: 12px;">
  43.                     + 新增建议</div>
  44.                 </tr>
  45.                 <tr>
  46.                   <td colspan="1" class="text-center">
  47.                     序号
  48.                   </td>
  49.                   <td colspan="4" class="text-center">
  50.                     建议
  51.                   </td>
  52.                   <td colspan="5" class="text-center">
  53.                     修改意见
  54.                   </td>
  55.                 </tr>
  56.                 <!-- 序号 -->
  57.                 <tr>
  58.                   <td colspan="1" class="text-center">
  59.                     1
  60.                   </td>
  61.                   <td colspan="4" class="text-center">
  62.                     <input class="input input_9" type="text">
  63.                   </td>
  64.                   <td colspan="5" class="text-center">
  65.                     <input class="input input_9" type="text">
  66.                   </td>
  67.                 </tr>
  68.                 <tr>
  69.                   <td colspan="1" class="text-center">
  70.                     2
  71.                   </td>
  72.                   <td colspan="4" class="text-center">
  73.                     <input class="input input_9" type="text">
  74.                   </td>
  75.                   <td colspan="5" class="text-center">
  76.                     <input class="input input_9" type="text">
  77.                   </td>
  78.                 </tr>
  79.                 <tr>
  80.                   <td colspan="1" class="text-center">
  81.                     3
  82.                   </td>
  83.                   <td colspan="4" class="text-center">
  84.                     <input class="input input_9" type="text">
  85.                   </td>
  86.                   <td colspan="5" class="text-center">
  87.                     <input class="input input_9" type="text">
  88.                   </td>
  89.                 </tr>
  90.                 <tr>
  91.                   <td style="width: 100%;" colspan="10">
  92.                     <div class="flex flex-col flex-grow w-full">
  93.                       <div>意见: </div>
  94.                       <textarea class="input input_10" rows="6" cols="50"></textarea>
  95.                     </div>
  96.                     <div class="flex items-center justify-end mt-4">
  97.                      签字/日期:
  98.                       <input class="input input_11" type="text">
  99.                     </div>
  100.                   </td>
  101.                 </tr>
  102.               </thead>
  103.             </table>
  104.             <div style="width: 95%;display: flex;margin:8px auto;line-height: 22px;">
  105.               <div>注:</div>
  106.               <div style="display: flex;flex-flow: column">
  107.                 <div>1.xxxxxxxxxxxxxxx。</div>
  108.                 <div>2.xxxxxxxxxxxxxxx。</div>
  109.               </div>
  110.             </div>
  111.           </div>
复制代码
 CSS代码:
  1. .table_box {
  2.   width: 100%;
  3.   font-family: '宋体' !important;
  4.   color: #000 !important;
  5.   .input {
  6.     outline: none;
  7.     border: 0;
  8.     border-bottom: 1px solid #000;
  9.     color: #000;
  10.   }
  11.   .input_1 {
  12.     font-size: 20px;
  13.     text-align: center;
  14.     width: 250px;
  15.   }
  16.   .input_2 {
  17.     font-size: 14px;
  18.     text-align: center;
  19.     width: 40px;
  20.   }
  21.   .input_3 {
  22.     font-size: 14px;
  23.     text-align: center;
  24.     width: 30px;
  25.   }
  26.   .input_4 {
  27.     font-size: 14px;
  28.     text-align: center;
  29.     width: 30px;
  30.   }
  31.   .input_5 {
  32.     font-size: 14px;
  33.     text-align: center;
  34.     width: 30px;
  35.   }
  36.   .input_6 {
  37.     font-size: 14px;
  38.     text-align: center;
  39.     width: 100px;
  40.     border: 0;
  41.   }
  42.   .input_7 {
  43.     font-size: 14px;
  44.     text-align: left;
  45.     width: 612px;
  46.     border: 0;
  47.   }
  48.   .input_8 {
  49.     font-size: 14px;
  50.     text-align: left;
  51.     width: 500px;
  52.     border: 0;
  53.   }
  54.   .input_9 {
  55.     font-size: 14px;
  56.     text-align: center;
  57.     width: 100%;
  58.     height: 100%;
  59.     border: 0;
  60.   }
  61.   .input_10 {
  62.     width: 100%;
  63.     font-size: 14px;
  64.     // text-align: center;
  65.     width: 100%;
  66.     border: 0px solid #000;
  67.     margin-top: 10px;
  68.     resize: none;
  69.   }
  70.   .input_11 {
  71.     font-size: 14px;
  72.     text-align: left;
  73.     width: 250px;
  74.     border: 0px solid #000;
  75.   }
  76.   .title_top,
  77.   .title_btm {
  78.     display: flex;
  79.     align-items: center;
  80.     justify-content: center;
  81.     font-weight: 700;
  82.   }
  83.   .title_top {
  84.     font-size: 25px;
  85.   }
  86.   .title_btm {
  87.     font-size: 20px;
  88.     margin: 15px 0;
  89.   }
  90.   .table {
  91.     width: 100%;
  92.     border-collapse: collapse;
  93.     .text-center {
  94.       text-align: center !important;
  95.     }
  96.     th,
  97.     td {
  98.       border: 1px solid black;
  99.       padding: 8px;
  100.       text-align: left;
  101.     }
  102.   }
  103. }
复制代码


免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表