【问题标题】:doesn't work in IE? [closed]在 IE 中不起作用? [关闭]
【发布时间】:2011-11-12 01:09:54
【问题描述】:

为什么这在 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>

【问题讨论】:

标签: css


【解决方案1】:

IE8 及以下不支持 :last-child http://www.quirksmode.org/css/contents.html#t35

这似乎做你想做的事 http://jsfiddle.net/QqMjL/3/

【讨论】:

    猜你喜欢
    • 2013-06-11
    • 1970-01-01
    • 2012-02-16
    • 2013-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-19
    • 2012-02-16
    相关资源
    最近更新 更多