删除黑块(css,php) [英] remove black block (css,php)

查看:97
本文介绍了删除黑块(css,php)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有结果网页的程式码:

http://pastebin.com/XK3hdNYY

i have this code for result page:
http://pastebin.com/XK3hdNYY

和此 css

http://pastebin.com/rs22p4px

但我有一个黑块与css无关。
例如,当代码是

but i have a black block that has nothing to do with css. For example, when the code is this

echo "<tr>";
echo "<td width='auto' bgcolor="#FF0000 &#8243;>" . "&nbsp;". "<b>"  . $i . "&nbsp;". "<b/>". "</td>";
echo "<td width='auto'>" . "&nbsp;" . $row[1] . "&nbsp;" . "</td>";
echo "<td width='auto'>". $row[2] . "</td>";
echo '<td><span class="spoiler-label">'.$row[1].'</span><div class="spoiler-content" style="display: none"><br>'.$row[3].'</div><td>';
echo "</tr>";

我有此表输出



当我更改这样的代码

i have this table output

when i change the code like this

echo "<tr>";
echo "<td width='auto' bgcolor="#FF0000 &#8243;>" . "&nbsp;". "<b>"  . $i . "&nbsp;". "<b/>". "</td>";
echo "<td width='auto'>" . "&nbsp;" . $row[1] . "&nbsp;" . "</td>";
echo "<td width='auto'>". $row[2] . "</td>";
echo "<td width='auto'>". $row[3] . "</td>";
echo '<td><span class="spoiler-label">'.$row[1].'</span><div class="spoiler-content" style="display: none"><br>'.$row[3].'</div><td>';
echo "</tr>";

我有这个输出:



当我这样改变时

I have this output:

and when i change like this

echo "<tr>";
echo "<td width='auto' bgcolor="#FF0000 &#8243;>" . "&nbsp;". "<b>"  . $i . "&nbsp;". "<b/>". "</td>";
echo "<td width='auto'>" . "&nbsp;" . $row[1] . "&nbsp;" . "</td>";
echo "<td width='auto'>". $row[2] . "</td>";
echo '<td><span class="spoiler-label">'.$row[1].'</span><div class="spoiler-content" style="display: none"><br>'.$row[3].'</div><td>';
echo "<td width='auto'>". $row[3] . "</td>";
echo "</tr>";

我的输出:



my output:


我要删除这些黑色块,太。在第三种情况下,列似乎已经丢失了它的边框和行?

I want remove these black block an and the column too. In the third case, it seems that the column has lost its borders and lines?

推荐答案

看起来你有一个HTML语法错误:

Looks like you have an HTML syntax error:

echo '<td><span class="spoiler-label">'.$row[1].'</span><div class="spoiler-content" style="display: none"><br>'.$row[3].'</div><td>';

应为:

echo '<td><span class="spoiler-label">'.$row[1].'</span><div class="spoiler-content" style="display: none"><br>'.$row[3].'</div></td>';

查看结尾< / td> 在每行的结尾。

See the closing </td> at the end of each line. You're opening a new column mistakenly.

不包含< th> 的新列表示默认为这样的空白列。

A new column without a <th> to represent it will default to a blank column like this.

这篇关于删除黑块(css,php)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆