css selector的IE用法

來源:互聯網
上載者:User
.tr1{
        ie-only:expression( this.className=(this.rowIndex % 2==0)?"red":"blue" );
    }
<style>
    .red{
        color:red;
    }
    .blue{
        color:blue;
    }
</style>
<table id="myTable">
    <tr class="tr1">
        <td>adasd</td>
    </tr>
    <tr class="tr1">
        <td>adasd</td>
    </tr>
    <tr class="tr1">
        <td>adasd</td>
    </tr>
    <tr class="tr1">
        <td>adasd</td>
    </tr>
</table>
<script language="javascript">
var oTable=document.getElementById("myTable");
for(var i=0;i<oTable.rows.length;i++){
    var oRow=oTable.rows(i);
    if(oRow.rowIndex %2 ==0){
        oRow.className="red";
    }else{
        oRow.className="blue";
    }
}
</script>

陰影文字的css

 font-weight: bold;
font-size: 18px;
filter: glow(color=#000000, strength=1) dropshadow(color=#000000, offx=2, offy=1, positive=1);
color: #ffffff;
line-height: 140%

 

相關文章

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.