更改Next.js中按钮的默认颜色

发布于 2025-01-25 03:35:08 字数 191 浏览 2 评论 0原文

我在Next.js Web应用程序中更改按钮的默认颜色遇到问题。 当我在桌面中的Google Chrome中看到它时,它的按钮文本颜色为灰色,但是当我使用移动铬浏览器打开它时,它看起来是蓝色的。 我想在两个中将按钮文本颜色为灰色。 使用样式自定义按钮文本颜色的方式不是我想要的方式,因为我想制作所有按钮文本(我的自定义按钮或节点模块中的按钮)的默认颜色。请帮我!谢谢。

I am having a problem changing default color of buttons in Next.JS Web Application.
It's button text color is grey when I see it in google chrome in Desktop, but looks blue when I open it using my Mobile chrome browser.
I want to make the button text color as grey in both of them.
The way of customizing the button text color using styles is not the way I want, because I want to make the default color of all button texts (my customized button, or button inside node modules) to be same. Please help me! Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡莣 2025-02-01 03:35:08

我没有你的代码,但这可能会起作用,然后让我知道

button {color:green !important;}
<button>Change my color</button>

I dont have your code but this might work then let me know

button {color:green !important;}
<button>Change my color</button>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文