经过一整天的沮丧,我找到了解决方案,使用 Javascript API https://developers.google.com/identity/gsi/web/guides/display-button?hl=pt-br,而不是html API。它变得更好了,所以我很高兴:)。