Closed jangxyz closed 6 years ago
This creates a 'sticky' table header on scroll.
Notice the header being visible while the scrollbar is somewhere in the middle.
Besides adding a position: sticky; to table thead trow th,
position: sticky;
table thead trow th
id="stocks-table"
background-color: #F9FAFB;
top: 43px
This creates a 'sticky' table header on scroll.
Notice the header being visible while the scrollbar is somewhere in the middle.
Besides adding a
position: sticky;
totable thead trow th
,id="stocks-table"
to specify the tablebackground-color: #F9FAFB;
to distinguish with the content.top: 43px
to lay the position below the gnb header.