如何更改 xdebug 输出的颜色? [英] How to change the colors of xdebug output?
本文介绍了如何更改 xdebug 输出的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
xdebug 的红色和黄色标准色在几个小时后会伤害您的眼睛.
The red and yellow standard colors of xdebug can hurt your eyes after a few hours.
http://www.designified.com/blog/article/76/restyling-xdebug-output 描述了如何用需要 jquery 的 javascript 替换样式.
http://www.designified.com/blog/article/76/restyling-xdebug-output describes how to replace the style with javascript requiring jquery.
我一直在寻找更直接的方法,终于找到了.
I was looking for a more straight forward way and finally found one.
推荐答案
解决方案是 !important 标签,它覆盖现有的样式值.使用 xdebug 时使用以下 css 代码避免眼癌:
The solution is the !important tag, it overrides the existing style values. Use the following css code to avoid eye cancer when using xdebug:
.xdebug-error {
font-size: 12px !important;
width: 95% !important;
margin: 0 auto 10px auto !important;
border-color: #666 !important;
background: #ddd !important;
}
.xdebug-error th, .xdebug-error td {
padding: 2px !important;
}
.xdebug-error th {
background: #ccc !important;
}
.xdebug-error span {
display: none !important;
}
.xdebug-error_description th {
font-size: 1.2em !important;
padding: 20px 4px 20px 100px !important;
background: #ccc no-repeat left top !important;
}
.xdebug-error_callStack th {
background: #666 !important;
color: #ddd !important;
}
这篇关于如何更改 xdebug 输出的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文