CSS 一些文法規範以及寫法(不涉及語法)

來源:互聯網
上載者:User
下面直接使用例子說明
<style>
body{ font-size:12px;}
div#div1{color:#ffffff;} //表示ID為div1的層,將自動套用此樣式
a:link,a:visited{color:#9AC8ED;border-bottom:1px dotted #9AC8ED;text-decoration:none;}
//Tag +動作,表示某種tag執行動作時,自動套用樣式。(用逗號分開,可多個寫在一起)
.defineclass{font-size:9pt;} //全域樣式,只要調用class="defineclass"即套用
TD.myclass{text-decoration:line-through; color:#cccccc;}表必須TD裡面的元素才可以套用
//注意,以上的方法可以結合使用...
</style>
相關文章

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.