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