将CSS背景从html选择到纯白色 - 角度项目

发布于 2025-01-24 05:33:45 字数 560 浏览 3 评论 0原文

我的角度项目中有一个选择标签,我希望它看起来像其他标签,如您在图像中所看到的。我该怎么办才能将CSS背景从选择变为纯白色,就像其他标签一样。

我尝试使用背景:白色;背景色:白色;在样式上,但它仍然是阴影灰色。

最终代码就像此图像: image

https://stackblitz.com/edit/edit/edit/angular-ivy-ivy-evy-evy-evy-evy-ev6e4w?file=src%2fassets %2fbootstrap.min.css

I have a select tag in my Angular project that I want it to look like others tags as you see in the image. What should I do to change CSS background from the select to be pure white as the others tags.

I've tried using background: white; background-color: white; in style but it still a shadow grey on it.

The final code is like this image: Image

https://stackblitz.com/edit/angular-ivy-ev6e4w?file=src%2Fassets%2Fbootstrap.min.css

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

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

发布评论

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

评论(1

烟酒忠诚 2025-01-31 05:33:45

如果您的项目中安装了bootstrap,只需添加form-control class

If you have Bootstrap installed in you're project, Just add form-control class

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