javascript - Table fixed tail row, has anyone written it?
欧阳克
欧阳克 2017-06-30 09:59:29
0
4
1032

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?

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(4)
世界只因有你

position: fixed;
bottom: 0;

学霸

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

洪涛

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

学习ing

Have you tried the pseudo-class last-child?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!