将CSS背景从html选择到纯白色 - 角度项目
我的角度项目中有一个选择标签,我希望它看起来像其他标签,如您在图像中所看到的。我该怎么办才能将CSS背景从选择变为纯白色,就像其他标签一样。
我尝试使用背景:白色;背景色:白色;
在样式上,但它仍然是阴影灰色。
最终代码就像此图像: image
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的项目中安装了bootstrap,只需添加
form-control
classIf you have Bootstrap installed in you're project, Just add
form-control
class