search

Home  >  Q&A  >  body text

javascript - Table fixed tail row, has anyone written it?

Now there is a requirement. The last row of the table is the total. The total should be fixed at the bottom of the table. Has anyone implemented it?

欧阳克欧阳克2704 days ago1043

reply all(4)I'll reply

  • 世界只因有你

    世界只因有你2017-06-30 10:01:29

    position: fixed;
    bottom: 0;

    reply
    0
  • 欧阳克

    欧阳克2017-06-30 10:01:29

    You are using elementui, just set show-summary to true. You can take a look at elementUI’s official website

    reply
    0
  • PHP中文网

    PHP中文网2017-06-30 10:01:29

    If you write it yourself
    1. First get the first row of tr (non-title), and make the width of each td into an array
    2. Get the last row of tr, change the position to fixed, set the position, and then add the td of the last row Fixed width, corresponding to the td of the first row

    reply
    0
  • 学习ing

    学习ing2017-06-30 10:01:29

    Have you tried the pseudo-class last-child?

    reply
    0
  • Cancelreply