Chrome and firefox header th width value problem?

requirements: js dynamically calculates the header width and fixes the header.
problem: the width of the th of thead obtained by using jquery width () is different between the two browsers

chrome:

firefox:

Mar.20,2021
Menu