테이블 행에 x 축에서 반복되는 배경 이미지가있는 테이블을 IE7에 표시하는 데 문제가 있습니다 (테이블 형식 데이터에 사용되는 것이 걱정되지 않음). 테이블 분할 (이 경우에는 TH)에는 별도의 배경 이미지가 있으며 이는 전혀 반복되지 않습니다.IE7 상위 및 하위 배경 이미지 문제 표시
여기 http://cdn.bkit.ca/misc/juniors-table-problem.png
는 CSS입니다 : 여기
은 예입니다<style>
table,
td,
th,
tr {
border: none;
}
table tr {
border-bottom: 1px solid #BEBEBE;
}
table td {
padding: 7px;
border-left: 1px solid #BEBEBE;
border-right: 1px solid #BEBEBE;
}
table th {
padding: 7px;
text-align: left;
}
table .header {
background-image: url(/images/layout/nav_background.png);
background-position: top;
background-repeat: repeat-x;
height: 37px;
border: none;
margin: 2px;
}
table .header th {
color: white;
font-weight: normal;
text-align: center;
}
table .header th.first {
background-color: transparent;
background-image: url(/images/layout/nav_left.png);
background-repeat: no-repeat;
background-position: top left;
}
table .header th.last {
background-image: url(/images/layout/nav_right.png);
background-repeat: no-repeat;
background-position: top right;
background-color: transparent;
}
</style>
그리고 여기에 HTML의 :
<table>
<tr class="header">
<th class="first">a</th>
<th>b</th>
<th class="last">a</th>
</tr>
</table>
내 CSS의 일부를 징계하지 마십시오 그것은 "스프레이와기도"CSS로 뭔가를 고치기를 바라고 있습니다.
그래서 나는 왜이 문제가 생겼는지 알지 못합니다. IE8에는이 동일한 문제점이 없습니다.
아이디어가 있으십니까?