Can you count a particular class with CSS?

后端 未结 7 920
刺人心
刺人心 2021-02-02 08:08

Lets say I have a simple list like so:

  1. one
  2. two
  3. &l
7条回答
  •  暖寄归人
    2021-02-02 08:40

    li {
        list-style-type: decimal;
    }
    
    li:not(.count) {
          -webkit-appearance: textfield;
          -moz-appearance: textfield;
          appearance: textfield;
    }
    

    this is a simple hack http://jsfiddle.net/9w9vkcf3/1/

    The appearance property is used to display an element using a platform-native styling based on the users' operating system's theme. source

提交回复
热议问题