HTML标签
                
                    
                            <!-->
                        
                            <!DOCTYPE>
                        
                            <a>
                        
                            <abbr>
                        
                            <acronym>
                        
                            <address>
                        
                            <applet>
                        
                            <area>
                        
                            <article>
                        
                            <aside>
                        
                            <audio>
                        
                            <b>
                        
                            <base>
                        
                            <basefont>
                        
                            <bdi>
                        
                            <bdo>
                        
                            <big>
                        
                            <blockquote>
                        
                            <body>
                        
                            <br>
                        
                            <button>
                        
                            <canvas>
                        
                            <caption>
                        
                            <center>
                        
                            <cite>
                        
                            <code>
                        
                            <col>
                        
                            <colgroup>
                        
                            <command>
                        
                            <datalist>
                        
                            <dd>
                        
                            <del>
                        
                            <details>
                        
                            <dfn>
                        
                            <dialog>
                        
                            <dir>
                        
                            <div>
                        
                            <dl>
                        
                            <dt>
                        
                            <em>
                        
                            <embed>
                        
                            <fieldset>
                        
                            <figcaption>
                        
                            <figure>
                        
                            <font>
                        
                            <footer>
                        
                            <form>
                        
                            <frame>
                        
                            <frameset>
                        
                            <head>
                        
                            <header>
                        
                            <hgroup>
                        
                            <h1> - <h6>
                        
                            <hr>
                        
                            <i>
                        
                            <iframe>
                        
                            <img>
                        
                            <input>
                        
                            <ins>
                        
                            <kbd>
                        
                            <keygen>
                        
                            <label>
                        
                            <legend>
                        
                            <li>
                        
                            <link>
                        
                            <map>
                        
                            <mark>
                        
                            <menu>
                        
                            <meta>
                        
                            <meter>
                        
                            <nav>
                        
                            <noframes>
                        
                            <noscript>
                        
                            <object>
                        
                            <ol>
                        
                            <optgroup>
                        
                            <option>
                        
                            <output>
                        
                            <p>
                        
                            <param>
                        
                            <pre>
                        
                            <html>
                        
                            <progress>
                        
                            <q>
                        
                            <rp>
                        
                            <rt>
                        
                            <ruby>
                        
                            <s>
                        
                            <samp>
                        
                            <script>
                        
                            <section>
                        
                            <select>
                        
                            <small>
                        
                            <source>
                        
                            <span>
                        
                            <strike>
                        
                            <strong>
                        
                            <style>
                        
                            <sub>
                        
                            <summary>
                        
                            <sup>
                        
                            <table>
                        
                            <tbody>
                        
                            <td>
                        
                            <textarea>
                        
                            <tfoot>
                        
                            <th>
                        
                            <thead>
                        
                            <time>
                        
                            <title>
                        
                            <tr>
                        
                            <track>
                        
                            <tt>
                        
                            <u>
                        
                            <ul>
                        
                            <var>
                        
                            <video>
                        
                            <wbr>
                        
                
            bgcolor
HTML <tr> bgcolor 属性
实例
给第一个表格行添加背景颜色:
		<table border="1">
<tr bgcolor="#FF0000">
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
<tr bgcolor="#FF0000">
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
浏览器支持
	



 
 
所有主流浏览器都支持 bgcolor 属性。
定义和用法
HTML5 不支持 <tr> bgcolor 属性。请使用 CSS 代替。
在 HTML 4.01 中,<tr> 的 bgcolor 属性 已废弃。
bgcolor 属性规定表格行的背景颜色。
兼容性注释
在 HTML 4.01 中,<tr> 的 bgcolor 属性已废弃。请使用 CSS 代替。
CSS 语法:<tr style="background-color:red">
在我们的 CSS 教程中,您可以找到更多有关 background-color 属性 的细节。
语法
		<tr bgcolor="color_name|hex_number|rgb_number">
	
属性值
| 值 | 描述 | 
|---|---|
| color_name | 规定颜色值为颜色名称的背景颜色(比如 "red")。 | 
| hex_number | 规定颜色值为十六进制值的背景颜色(比如 "#ff0000")。 | 
| rgb_number | 规定颜色值为 rgb 代码的背景颜色(比如 "rgb(255,0,0)")。 |