Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 netlify 上部署了一个 gatsby 站点,当查看该站点时,它不会为某些元素(我的按钮)呈现 css,但适用于其他元素,例如我的框。
当我在本地运行该站点时,它可以正常工作并呈现良好。
本地渲染:
部署后渲染:
我在 gatsby 网站上使用了情感 10。
我试过同时使用对象样式和字符串样式。相同的样式适用于我拥有的其他组件,例如使用某些相同 css 的框。
这是 css 在开发工具中的外观:
任何想法为什么会发生这种情况?