我offsetwidth在Firefox和Chrome中获得了相同元素的不同值,这使得元素显示不正确.请提出一些解决方案,以保持一致性.
offsetwidth
javascript firefox google-chrome
firefox ×1
google-chrome ×1
javascript ×1