Are parentheses allowed in CSS selectors?

后端 未结 2 933
南笙
南笙 2020-11-29 09:27

In the below example, I want to create a CSS rule that applies only to the header with the text \"Blockhead\".

 
2条回答
  •  醉梦人生
    2020-11-29 09:43

    h3 is not inside .pokey so you must ommit .pokey from the rule

    All u'd be able to do is

    .gumby h3 {}
    

    or do this

     

    Blockhead

    Clay rules

    .gumby.pokey h3 {}

    if a tag has more than one class you can pile them up in css if you don't use a space character

提交回复
热议问题