CSS學習總結(不斷更新)

來源:互聯網
上載者:User

一、CSS選取器中的屬性順序:顯示內容->自身屬性->文字屬性

顯示內容:display, list-style, position, float, clear

自身屬性:width, height, margin, padding,border,background

文字屬性:color, font, text-decoration,text-align,vertical-align, white-space, content

因:這個順序是項目開發的代碼標準,符合瀏覽器的渲染順序,最終達到提高執行效率目的。

相關文章

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.