0
我遇到問題了。我嘗試添加背景到表單元格,但不起作用。CSS背景不起作用
.price-table td.left-up {
background: url("img/left-up.png") no-repeat;
width: 181px;
height: 118px;
}
和HTML:
<div class="price-table">
<table>
<tr>
<td class="left-up">
sdst
</td>
</tr>
</table>
</div>
你確定img位置正確嗎?你看到一個'img'文件夾與你放置此代碼的頁面處於同一級別嗎?你看到那個文件夾中的'left-up.png'文件嗎? –
你的樹結構是什麼?路徑名稱必須不正確。 – George