本文整理汇总了PHP中HtmlReporter::_getCss方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlReporter::_getCss方法的具体用法?PHP HtmlReporter::_getCss怎么用?PHP HtmlReporter::_getCss使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HtmlReporter
的用法示例。
在下文中一共展示了HtmlReporter::_getCss方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
/**
*
*/
function _getCss()
{
$contents = parent::_getCss() . "\n ";
$contents .= '
.bar { float: left; display: inline; border: 1px solid #eee; width: 300px; white-space: nowrap;}
.percentage { float: left; background-color: #eef; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 0.65em; padding: 5px; margin-right: }
.coverage {margin: 0.4em; }
.coverage a {
padding-left: 0.5em;
}
.coverage:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.coverage {display: inline-block;}
/* Hides from IE-mac \\*/
* html .coverage {height: 1%;}
.coverage {display: block;}
/* End hide from IE-mac */
';
return $contents;
}
示例2: alpha
function _getCss()
{
$result = parent::_getCss();
$result .= "\n.progress { margin: 1px; height: 20px; padding: 1px; border: 1px solid #000; width: 275px; " . "background: #fff; color: #000; float: left; clear: right; top: 75px; z-index: 9; }";
$result .= "\n.percents { background: #FFF; border: 1px solid #CCC; margin: 1px; height: 20px; " . "position:absolute; width:275px; z-index:10; left: 10px; top: 75px; text-align: center; }";
$result .= "\n.blocks { background: #EEE; border: 1px solid #CCC; margin: 1px; height: 20px; width: 10px; " . "position: absolute; z-index:11; left: 12px; top: 75px; " . "filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5; -khtml-opacity: .5 }";
return $result;
}
示例3:
function _getCss()
{
return parent::_getCss() . ' .pass { color: darkgreen; }';
}
示例4:
function _getCss()
{
return parent::_getCss() . " .pass { color: green; } \n" . " .fail { font-weight:bold; font-size:1.2em; }.\n";
}
示例5: _getCss
/**
* Paints the CSS. Add additional styles here.
* @return string CSS code as text.
* @access protected
*/
function _getCss()
{
return HtmlReporter::_getCss() . " pre.source { font-family: monospace; white-space: pre; background-color: #eeeeec; }" . " span.lineNum { background-color: #e9b96e; }" . " span.lineCov { background-color: #8ae234; }" . " span.lineNoCov { background-color: #FAEA4F; }" . " span.lineDeadCode { background-color: #EF7B00; }" . " table#coverage th { background-color: #555752; color: white; text-align: center; padding: 0.1em 1em; }" . " table#coverage td.a { color: black; }" . " table#coverage td.low { background-color: #ef7b00; color: black; text-align: center; padding: 0.1em 1em; }" . " table#coverage td.medium { background-color: #faea4f; color: black; text-align: center; padding: 0.1em 1em; }" . " table#coverage td.high { background-color: #8ee034; color: black; text-align: center; padding: 0.1em 1em; }" . " table#coverage td { background-color: #d4d7d0; color: black; text-align: left; padding: 0.1em 1em; }";
}