Cố định table heading khi cuộn cho table đơn giản nhất
This post hasn't been updated for 5 years
Với table ta không thể sử dụng position: sticky;
cho thead
hay tr
nhưng có thể dùng sticky cho thẻ th
.
th {
position: sticky;
}
Cuộn table dọc
Cuộn table ngang
Nguồn:
All Rights Reserved