當前位置: 首頁>>代碼示例>>PHP>>正文


PHP HtmlReporter::_getCss方法代碼示例

本文整理匯總了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;
    }
開發者ID:Nurudeen,項目名稱:prado,代碼行數:28,代碼來源:HtmlReporterWithCoverage.php

示例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;
 }
開發者ID:justinlyon,項目名稱:scc,代碼行數:8,代碼來源:ProgressReporter.php

示例3:

 function _getCss()
 {
     return parent::_getCss() . ' .pass { color: darkgreen; }';
 }
開發者ID:sebs,項目名稱:simpletest,代碼行數:4,代碼來源:visual_test.php

示例4:

 function _getCss()
 {
     return parent::_getCss() . " .pass { color: green; } \n" . " .fail { font-weight:bold; font-size:1.2em; }.\n";
 }
開發者ID:Ariflaw,項目名稱:b2evolution,代碼行數:4,代碼來源:HtmlReporterShowPasses.class.php

示例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; }";
 }
開發者ID:clickdimension,項目名稱:tinybutstrong,代碼行數:9,代碼來源:HtmlCodeCoverageReporter.php


注:本文中的HtmlReporter::_getCss方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。