简体   繁体   English

如何识别PrimeFaces工具提示的背景颜色?

[英]How do I identify PrimeFaces tooltip backgrouond color?

I'm using PrimeFaces6.1 and my primefaces.THEME is afternoon. 我正在使用PrimeFaces6.1和primefaces.THEME是下午。 I would like to make my panel overlay look the same as the tooltips. 我想使面板覆盖看起来与工具提示相同。 Therefore, I need to figure out what the tooltip background color is. 因此,我需要弄清楚工具提示的背景颜色是什么。 It's obvious the font color is white. 很明显,字体颜色是白色。

I have found information on how to override the tooltip colors and I guess I could do that, but I really like the theme color. 我已经找到了有关如何覆盖工具提示颜色的信息,我想我可以做到这一点,但是我真的很喜欢主题颜色。 Anyone have an idea on this? 有人对此有想法吗?

You could find out the back-ground color for p:tooltip used in Primefaces 6.1 in components.css 您可以在components.css中的Primefaces 6.1中找到p:tooltip的背景色。

Path: primefaces-6.1.jar\\META-INF\\resources\\primefaces 路径: primefaces-6.1.jar\\META-INF\\resources\\primefaces

open the components.css and search ui-tooltip-text{padding:3px 10px;background-color:#4c4c4c;color:#fff} 打开components.css并搜索ui-tooltip-text{padding:3px 10px;background-color:#4c4c4c;color:#fff}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM