我得到了两个文件,HTML和CSS,我必须更改一些表行"文本颜色"基于HTML文件中的单元格内容。但问题是我必须只更改Css文件(不触及HTML文件)来实现这一点。可以请任何人帮助我,我将非常感激。
下面的文件是连续的CSS文件,HTML文件,要实现的输出图像(链接)
A PHP Error was encountered
Severity: Notice
Message: **Uninitialized string offset: 36**
Filename: helpers/captcha_helper.php
Line Number: 174
Backtrace:
File: C:\wamp\www\jpweb\models\captcha_model.php Line: 48 Function: create_captcha
File: C:\wamp\www\jpweb\controllers\Register.php Line: 26 Function: insert_captcha
File: C:\wamp\www\index.php Line: 292 Function: require_once A PHP Error was encountered
Severity: Warning
Message: **unpack(): Type C: not enough input, need 1, have 0**
Filename: helpers/captcha_helper.php
Line Number: 174
Backtrace:
File: C:\wamp\www\jpweb\models\captcha_model.php Line: 48 Function: create_captcha
File: C:\wamp\www\jpweb\controllers\Register.php Line: 26 Function: insert_captcha
File: C:\wamp\www\index.php Line: 292 Function: require_once A PHP Error was encountered
Severity: Notice
Message: **String offset cast occurred**
Filename: helpers/captcha_helper.php
Line Number: 206
Backtrace:
File: C:\wamp\www\jpweb\models\captcha_model.php Line: 48 Function: create_captcha
File: C:\wamp\www\jpweb\controllers\Register.php Line: 26 Function: insert_captcha
File: C:\wamp\www\index.php Line: 292 Function: require_once A PHP Error was encountered
Severity: Notice
Message: **Uninitialized string offset: 37**
Filename: helpers/captcha_helper.php
Line Number: 174
Backtrace:
File: C:\wamp\www\jpweb\models\captcha_model.php Line: 48 Function: create_captcha
File: C:\wamp\www\jpweb\controllers\Register.php Line: 26 Function: insert_captcha
File: C:\wamp\www\index.php Line: 292 Function: require_once A PHP Error was encountered
Severity: Warning
Message: **unpack(): Type C: not enough input, need 1, have 0**
Filename: helpers/captcha_helper.php
Line Number: 174
Backtrace:
File: C:\wamp\www\jpweb\models\captcha_model.php Line: 48 Function: create_captcha
File: C:\wamp\www\jpweb\controllers\Register.php Line: 26 Function: insert_captcha
File: C:\wamp\www\index.php Line: 292 Function: require_once A PHP Error was encountered
Severity: Notice
Message: **String offset cast occurred**
Filename: helpers/captcha_helper.php
Line Number: 206
Backtrace:
File: C:\wamp\www\jpweb\models\captcha_model.php Line: 48 Function: create_captcha
File: C:\wamp\www\jpweb\controllers\Register.php Line: 26 Function: insert_captcha
File: C:\wamp\www\index.php Line: 292 Function: require_once

body, div, h1, form, fieldset, input, textarea {
margin: 0; padding: 0; border: 0; outline: none;
}
table {
margin: 1;
padding: 0;
border: 1px;
outline: none;
background:#FFF;
border-style:solid;
border-color:#AAA;
position: relative;
top: 200px;
}
th {
background:gray;
}
td {
border-color:#AAA;
}
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
color:#000000;
position:relative;
background:#D2D9DD
}
.panel {
}
.panelHeader {
}
.panelContent {
}

最后结果应该是这样的:
===> link : Click here to see image result < ===
答案 0 :(得分:1)
仅使用Css
简短的回答:你做不到。 CSS无法读取元素的内容。