有人会在乎帮助我还是为我指明正确的方向吗?由于某些奇怪的原因,我的php文件中的前部颜色设置为白色时,始终保持黑色。
我试图把“颜色:白色;”以及“颜色:#FFFFFF;”使其在CSS的每个部分中都能正常工作,但到目前为止还没有运气。
图片参考: https://imgur.com/HoZccG1(我已经将光标悬停在黑色部分上,以显示它完全被背景吸收了)
Php文件:
<div class="newsblock">
<?php
/*------------------------------------------------------*/
/*--------------------CONFIG TIMEZONE-------------------*/
/*------------------------------------------------------*/
setlocale(LC_TIME, 'pt_EN', 'pt_EN.utf-8', 'pt_EN.utf-8', 'english');
date_default_timezone_set('America/New_York');
/*------------------------------------------------------*/
/*------------------------------------------------------*/
require_once("status/inc/rsslib.php");
echo RSS_Display ( $ticim['RSSall'], 4 );
echo NO_EDIT ( $ticim['RSS_SIG']);
?>
</div>
css文件:
body { color: white; !important; padding: 0; margin: 0; background: #FFF; border: 0; outline: 0; overflow: hidden; font-family: "Arial", sans-serif; font-size: 10px; font-weight: bold; }
.newsblock table { color: white; !important; width: 110%; font-size: 10px; border-collapse: collapse; white-space: nowrap; }
.newsblock table tr td { color: white; !important; font-weight: bold; padding: 1px 0; }
.newsblock table tr td a { color: white; !important; font-weight: bold; line-height: 1; font-size: 10px; display: block; }
.newsblock table tr.row_1 td { color: white; !important; font-weight: bold; }
.newsblock table tr.row_6 td { color: white; !important; background: none; color: }
.newsblock table tr td.date { color: white; !important; font-weight: bold; }
最好将日期恢复为白色/可见,就像另一栏中的文字一样。