不用javascript實現帶序號的表格隔行換色的效果_經驗交流

來源:互聯網
上載者:User
<style> .test{ border:1px solid #000; color:#333; font:12px; } .test ol li{ padding-left:5px; background-color:expression(this.sourceIndex%2? '#efefef':'#fefefe'); } </style> <ol> <li>觀自在菩薩</li> <li>行深般若波羅密多時</li> <li>照見五蘊皆空</li> <li>度一切苦厄</li> <li>舍利子</li> <li>色不異空</li> <li>空不異色</li> <li>色既是空</li> <li>空既是色</li> <li>受想行識</li> <li>亦複如是</li> <li>舍利子</li> <li>是諸法空相</li> <li>不生不滅</li> <li>不垢不淨</li> <li>不增不減</li> <li>是故空中無色</li> <li>無受想行識</li> </ol>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
  • 相關文章

    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.