如何让柱子的线条变成黑色

发布于 2024-10-04 04:35:29 字数 2065 浏览 3 评论 0原文

使表格的列为黑色(轮廓和内部)

<table width=80% border=0 cellspacing=0 cellpadding=3 align=center>
<tr><td colspan=2><font face=verdana size=5 color=#999999>XYZ| </font><font face=Tahoma size=5>ABC</font></td></tr><tr
 bgcolor=#6DA2D7><td colspan=2 height=13></td>
<td align=left><font face=Tahoma size=2 color=#ffffff> Date</td>
<td align=right><font face=Tahoma size=3 color=#ffffff> Monitoring</td></tr>
<td align=left><font face=Tahoma size=2 color=#000000> Tool hourly report</td>
<table width=70% border=1 cellspacing=0 cellpadding=3 align=center
<tr style="background-color: #256B9C;">
<th COLSPAN=3 align=left ><font face=Tahoma size=2 color=#ffffff >Disk Space</th></tr>
<tr style="background-color: #256B9C;">
<th><font face=Tahoma size=2 color=#ffffff>Machine</th>
<th><font face=Tahoma size=2 color=#ffffff>Status</th>
</tr>
<tr style="background-color: #FFFFFF;">
<td align=center ><font face=Tahoma size=2 color=#000000>BN stpmus@sn2437</td>
<td align=center><font face=Tahoma size=2 color=#000000>85 % full</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td align=center><font face=Tahoma size=2 color=#000000>GH stpma@sn2597</td>
<td align=center><font face=Tahoma size=2 color=#000000>51 % full</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td align=center><font face=Tahoma size=2 color=#000000>US1 stpmu1@sn2598</td>
<td align=center><font face=Tahoma size=2 color=#000000>1 % full</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td align=center><font face=Tahoma size=2 color=#000000>US2 stpmu2@sn2499</td>
<td align=center><font face=Tahoma size=2 color=#000000>9 % full</td>
</tr>
</table></td>

The make the columns of the table as black (both outline and inside)

<table width=80% border=0 cellspacing=0 cellpadding=3 align=center>
<tr><td colspan=2><font face=verdana size=5 color=#999999>XYZ| </font><font face=Tahoma size=5>ABC</font></td></tr><tr
 bgcolor=#6DA2D7><td colspan=2 height=13></td>
<td align=left><font face=Tahoma size=2 color=#ffffff> Date</td>
<td align=right><font face=Tahoma size=3 color=#ffffff> Monitoring</td></tr>
<td align=left><font face=Tahoma size=2 color=#000000> Tool hourly report</td>
<table width=70% border=1 cellspacing=0 cellpadding=3 align=center
<tr style="background-color: #256B9C;">
<th COLSPAN=3 align=left ><font face=Tahoma size=2 color=#ffffff >Disk Space</th></tr>
<tr style="background-color: #256B9C;">
<th><font face=Tahoma size=2 color=#ffffff>Machine</th>
<th><font face=Tahoma size=2 color=#ffffff>Status</th>
</tr>
<tr style="background-color: #FFFFFF;">
<td align=center ><font face=Tahoma size=2 color=#000000>BN stpmus@sn2437</td>
<td align=center><font face=Tahoma size=2 color=#000000>85 % full</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td align=center><font face=Tahoma size=2 color=#000000>GH stpma@sn2597</td>
<td align=center><font face=Tahoma size=2 color=#000000>51 % full</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td align=center><font face=Tahoma size=2 color=#000000>US1 stpmu1@sn2598</td>
<td align=center><font face=Tahoma size=2 color=#000000>1 % full</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td align=center><font face=Tahoma size=2 color=#000000>US2 stpmu2@sn2499</td>
<td align=center><font face=Tahoma size=2 color=#000000>9 % full</td>
</tr>
</table></td>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

傾城如夢未必闌珊 2024-10-11 04:35:29

只是因为你原来的代码让我伤了脑筋:

<style type="text/css">
.mainTable { border-collapse: collapse; font-family: Tahoma, sans-serif; margin: 0 auto; width: 80%; }
.mainTable td, .mainTable th { padding: 3px; }
.mainTable .branding { color: #999999; }
.mainTable .header { background-color: #6DA2D7; color: #FFFFFF; }
.mainTable .small { font-size: small; }
.mainTable .x-large { font-size: x-large; }
.mainTable .left { text-align: left; }
.mainTable .right { text-align: right; }
.mainTable .center { text-align: center; }
.mainTable .odd { background-color: #FFFFFF; }
.mainTable .even { background-color: #EEEEEE; }

.subTable { border: 1px solid #000000; border-collapse: collapse; margin: 0 auto; width: 90%; }
.subTable td { border-bottom: 1px solid #000000; border-right: 1px dotted #000000; }
.subTable .header { background-color: #055770; border: 1px solid #000000; }
.subTable .subheader { background-color: #256B9C; border: 1px solid #000000; color: #FFFFFF; }
.subTable .high { color: #FF0000; font-weight: bold; }
.subTable .med { color: #FF9900; }
.subTable .low { color: #009900; }
</style>

<table class="mainTable">
    <tr><td class="x-large" colspan="3"><span class="branding">XYZ|</span> ABC</td></tr>
    <tr class="header"><td> </td><td class="small">Date</td><td class="right">Monitoring</td></tr>
    <tr><td class="small">Tool hourly report</td><td colspan="2"> </td></tr>
    <tr>
        <td colspan="3">
            <table class="subTable small center">
                <tr class="header left"><th colspan="3">Disk Space</th></tr>
                <tr class="subheader"><th>Machine</th><th>Status</th></tr>
                <tr class="odd"><td>BN stpmus@sn2437</td><td class="high">85% full</td></tr>
                <tr class="even"><td>GH stpma@sn2597</td><td class="med">51% full</td></tr>
                <tr class="odd"><td>US1 stpmu1@sn2598</td><td class="low">1% full</td></tr>
                <tr class="even"><td>US2 stpmu2@sn2499</td><td class="low">9% full</td></tr>
            </table>
        </td>
    </tr>
</table>

Just because your original code made my brain hurt:

<style type="text/css">
.mainTable { border-collapse: collapse; font-family: Tahoma, sans-serif; margin: 0 auto; width: 80%; }
.mainTable td, .mainTable th { padding: 3px; }
.mainTable .branding { color: #999999; }
.mainTable .header { background-color: #6DA2D7; color: #FFFFFF; }
.mainTable .small { font-size: small; }
.mainTable .x-large { font-size: x-large; }
.mainTable .left { text-align: left; }
.mainTable .right { text-align: right; }
.mainTable .center { text-align: center; }
.mainTable .odd { background-color: #FFFFFF; }
.mainTable .even { background-color: #EEEEEE; }

.subTable { border: 1px solid #000000; border-collapse: collapse; margin: 0 auto; width: 90%; }
.subTable td { border-bottom: 1px solid #000000; border-right: 1px dotted #000000; }
.subTable .header { background-color: #055770; border: 1px solid #000000; }
.subTable .subheader { background-color: #256B9C; border: 1px solid #000000; color: #FFFFFF; }
.subTable .high { color: #FF0000; font-weight: bold; }
.subTable .med { color: #FF9900; }
.subTable .low { color: #009900; }
</style>

<table class="mainTable">
    <tr><td class="x-large" colspan="3"><span class="branding">XYZ|</span> ABC</td></tr>
    <tr class="header"><td> </td><td class="small">Date</td><td class="right">Monitoring</td></tr>
    <tr><td class="small">Tool hourly report</td><td colspan="2"> </td></tr>
    <tr>
        <td colspan="3">
            <table class="subTable small center">
                <tr class="header left"><th colspan="3">Disk Space</th></tr>
                <tr class="subheader"><th>Machine</th><th>Status</th></tr>
                <tr class="odd"><td>BN stpmus@sn2437</td><td class="high">85% full</td></tr>
                <tr class="even"><td>GH stpma@sn2597</td><td class="med">51% full</td></tr>
                <tr class="odd"><td>US1 stpmu1@sn2598</td><td class="low">1% full</td></tr>
                <tr class="even"><td>US2 stpmu2@sn2499</td><td class="low">9% full</td></tr>
            </table>
        </td>
    </tr>
</table>
明月松间行 2024-10-11 04:35:29

很难说你到底在寻找什么,但也许它是 border-collapse CSS 属性?

例如:

<table border="1" style="border-collapse:collapse">

It's hard to tell what exactly you are looking for, but perhaps it is the border-collapse CSS property?

For example:

<table border="1" style="border-collapse:collapse">
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文