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.
我在 Rails 应用程序中使用了很棒的awesome_print gem。它工作正常,除了彩色文本是黑色背景并且有点难以阅读。我想保留颜色但没有黑色背景。
我可以看到节点是如何着色的,但是如何轻松去除黑色背景?
这完成了工作
kbd { -moz-background-clip:border; -moz-background-inline-policy:continuous; -moz-background-origin:padding; background:#EEEEEE none repeat scroll 0 0; border:none; color:#000000; padding:2px 1px; white-space:nowrap; }