Abstraction away from CSS

前端 未结 18 2131
别跟我提以往
别跟我提以往 2021-02-13 10:34

Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in an effort to make dealing with that particular kettle of fish easier.

Is there an

18条回答
  •  耶瑟儿~
    2021-02-13 11:38

    I believe the common errors beginners have with CSS are to do with specificity. If you're styling the a tag, are you sure you really want to be styling every single one in the document or a certain "class" of a tags?

    I usually start out being very specific with my CSS selectors and generalize them when I see fit.

    Here's a humerours article on the subject, but also informational: Specificity Wars

提交回复
热议问题