IE中bordercolorlight的CSS實現

來源:互聯網
上載者:User
最近在使用TABLE的bordercolorlight/bordercolordar的屬性時,IDEA總是提示我屬性非法,搞的人很不爽。沒辦法,這兩個屬性連MSDN都建議不再使用。可是,如果通過CSS來類比實現呢? Google了一下,發現了如下的解決辦法: <style type="text/css">
TABLE.colorTest{
    border-top: 1px solid #EBEAEE;
    border-left: 1px solid #EBEAEE;
    border-right: 0px;
    border-bottom: 0px;
}
.colorTest TD {
    border-top: 1px solid #FFFFFF;
    border-left: 1px solid #FFFFFF;
    border-right: 1px solid #EBEAEE;
    border-bottom: 1px solid #EBEAEE;
}
</style>
<table class="colorTest"
 cellpadding="1" cellspacing="0">
<tbody>
<tr bgcolor="#EEEEEE">
<td>www.</td>
<td>zeali.</td>
<td>net</td>
</tr>
<tr bgcolor="#DADADA">
<td>www.</td>
<td>zeali.</td>
<td>net</td>
</tr>
</tbody>
</table> 引用地址: http://www.zeali.net/entry/412
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.