div.classname in css file

后端 未结 12 682
臣服心动
臣服心动 2020-12-10 02:21

I have seen some developers write

HTML:

some content

CSS:

12条回答
  •  醉话见心
    2020-12-10 02:59

    It is a matter of style. ;)

    It will only be applied to div elements. Some people like narrowing the scope as much as possible to help reduce maintenance in the future, while other people find that having it more open is easier to maintain. It's mostly a matter of personal preference for the most part.

提交回复
热议问题