<th background="file_name"> 設定單一表頭儲存格背景圖片(平鋪填滿,HTML4 屬性,HTML5 棄用,改用 CSS background-image)。
<th background="10-8.jpg">網頁圖像軟體</th>
background="images/th-bg.jpg"background="https://cdn.example.com/th-bg.jpg"<table border="3" width="400" height="100" bordercolor="#336699">
<tr>
<th background="10-8.jpg">網頁圖像軟體</th>
<th>Fireworks</th>
</tr>
...
</table>
th.title-bg {
background-image: url('10-8.jpg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
color: white; /* 確保文字可讀 */
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
CSS 可精確控制不平鋪、定位、縮放、疊加漸層,並能配合媒體查詢響應式切換背景圖。