CSS:list-style-image將圖象設定為清單項目標記的詳解

來源:互聯網
上載者:User
在CSS中list-style-image的屬性為將圖象設定為清單項目標記。本文詳細介紹下list-style-image的定義和用法、list-style-image的文法、list-style-image的執行個體。

在CSS中list-style-image屬性的作用為:將圖象設定為清單項目標記。

list-style-image屬性執行個體

把映像設定為列表中的項目標記:

ul  {  list-style-image:url("/i/arrow.gif");  list-style-type:square;  }

list-style-image定義和用法

list-style-image 屬性使用映像來其他清單項的標記。

說明

這個屬性指定作為一個有序或無序清單項目標誌的映像。映像相對於清單項目內容的置放位置通常使用 list-style-position 屬性控制。

注釋:請始終規定一個 "list-style-type" 屬性以防映像不可用。

相關文章

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.