问题 I am trying to design a table that has a sticky thead and also sticky row headers. So, basically, all th elements must be sticky. I have stumbled across the position: sticky css3 attribute that seems to be a great candidate for the job, even though it's not yet supported in many browsers (which is not an issue to me). However the MDN documentation says: The effect of ‘position: sticky’ on table elements is the same as for ‘position: relative’. Getting this into consideration, I have built a