CSS樣式表定義標籤li

來源:互聯網
上載者:User

定義LI前面的小點樣式 

view plaincopy to clipboardprint?
文法:  
list-style-type : disc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none | armenian | cjk-ideographic | georgian | lower-greek | hebrew | hiragana | hiragana-iroha | katakana | katakana-iroha | lower-latin | upper-latin   


這些文法就是定義LI前面小點的樣式所用到的,當然,前面使用小表徵圖,效果更是千變萬化,具體的實施,就是個人的愛好了

view plaincopy to clipboardprint?
   
文法:  
list-style-image : none | url ( url )   
取值:  
none  :

我們也可以定義li前面的點的樣式,如list-style-image:url(yun_qi_img/banner.gif);這樣你定義的每個樣式前面都會有一個表徵圖,

例:

<div id=ap>

<ul><li></li></ul>

</div>

 

我們可以在css裡面這樣寫#ap ul li{list-style-image:url(yun_qi_img/banner.gif);

 

相關文章

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.