CSS2實現的隔行換色_經驗交流

來源:互聯網
上載者:User
利用了CSS2 的 相鄰選擇符 IE7以下不支援

隔行換色樣本:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


放棄class與js實現隔行換色效果























12 12 12 12
12 12 12 12
12 12 12 12
12 12 12 12
12 12 12 12







隔列換色樣本:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


放棄class與js實現隔列換色效果























12 12 12 12
12 12 12 12
12 12 12 12
12 12 12 12
12 12 12 12


  • 相關文章

    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.