배경 이미지를 적용하려고하지만 표시되지 않는 테이블이 있습니다. 이미지 경로 (방화 광 이미지를로드 말한다) 권리이고 테이블의 크기는 이미지 크기 (156X46px)왜 테이블 배경이 보이지 않습니까?
HTML과 동일합니다 :
<!--hazard icons start here -->
<table class="hazard-table">
<tr>
<td> 1 </td>
<td> 1 </td>
<td> 1 </td>
</tr>
<tr>
<td> 1 </td>
<td> 1 </td>
<td> 1 </td>
</tr>
<!-- hazard icons end here -->
</table>
CSS : A와
table.hazard-table {
background:url('../images/icon-item.png') no-repeat;
width:156px;
height:46px;
border-width: 1px;
border-spacing: 2px;
border-style: solid;
border-color:#ebebeb;
border-collapse: collapse;
background-color: white;
}
table.hazard-table th {
border-width: 1px;
padding: 1px;
border-style: inset;
border-color: #ebebeb;
background-color: white;
-moz-border-radius: ;
}
table.hazard-table td {
background-position:30 20 ;
border-width: 1px;
padding: 1px;
border-style: inset;
border-color: #ebebeb;
background-color: white;
-moz-border-radius: ;
}
Woops. 나는 그 배경색을 완전히 놓쳤다 : 흰색; 좋은 직장 :) – zuc0001
당신이 말한대로 그것을 바 꾸었습니다. – Aneesh
try ['code'] background-image : url ('../ images/icon-item.png'); background-repeat : no-repeat; background-color : #fff; ['code'] – zuc0001