开发者

doesn't work in IE? [closed]

开发者 https://www.devze.com 2023-04-03 18:13 出处:网络
It's difficult to tell what is being asked here.开发者_JAVA百科 This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
It's difficult to tell what is being asked here.开发者_JAVA百科 This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

Why doesn't this work in IE8?

http://jsfiddle.net/QqMjL/

table.points > tbody > tr > td {
    padding:8px 0px 8px 0px;
}

table.points > tbody > tr > td:last-child > div {
    border:1px solid #a5bcd0;
    border-left:3px solid #a5bcd0;
    border-right:0px;
    padding:5px 6px 6px 10px;
    background:#fcfeff;
}

<table class="points">
    <tr>
        <td>test</td>
        <td><div>hey</div></td>
    </tr>
</table>


IE8 and below doesn't support :last-child http://www.quirksmode.org/css/contents.html#t35

This seems to do what you want http://jsfiddle.net/QqMjL/3/

0

精彩评论

暂无评论...
验证码 换一张
取 消