CSS中list-style-type: none的含義是什嗎?

來源:互聯網
上載者:User
CSS中list-style-type: none是什麼意思?我是新手,剛開始學習div+css這語句什麼意思

li標籤前面預設是有樣式的,就是那個點。你可以打出來看看啊。

<ul>  <li>有小點點的</li>  <li style="list-style-type: none;">沒小點點的</li>  <li>這種問題百度都不用吧?</li></ul>

樓上是官方式說明,簡言之

就是除去UL,OL前面的樣式,比如小圓點,羅馬數字,放寬

測試清單:   1. 大聲地    2. 打算打

使用樣式:

list-style:none

測試清單:    大聲地     打算打

list-style:none,這個樣式是用來處理比如去除標籤<ul><li></li></ul>預設加的樣式等等.

8px是可以改變的,margin-right指的是與右邊的距離,值變大時幾個數字之間的空隙就變大了。

li前面不是有小圓點兒嗎?

可以使用 list-style:none;來消除

li便簽有個預設屬性,一個點兒。。設定none就可以取消那點兒

那為什麼我去點了list-style:none也沒有什麼影響?也沒見有點呢

ist-style 設定的預設值 disc outside none

相關文章

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.