动态生成表格 通过字符串筛选对象并输出对应的对象属性

57 阅读1分钟
<style>
  table {
    width: 500px;
    margin: 100px auto;
    border-collapse: collapse;
    text-align: center;
  }

  td,
  th {
    border: 1px solid #333;
  }

  thead tr {
    height: 40px;
    background-color: #ccc;
  }
</style>
姓名 科目 成绩 操作