Using regular expression in css?

前端 未结 8 1571
野的像风
野的像风 2020-11-22 06:01

I have an html page with divs that have id(s) of the form s1, s2 and so on.

8条回答
  •  囚心锁ツ
    2020-11-22 06:16

    there is another simple way to select particular elements in css too...

    #s1, #s2, #s3 {
        // set css attributes here
    }
    

    if you only have a few elements to choose from, and dont want to bother with classes, this will work easily too.

提交回复
热议问题