div.classname in css file

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

I have seen some developers write

HTML:

some content

CSS:

12条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 02:45

    you can apply classes to multiple dom elements, so doing div.classname would allow you to select only div elements with that class instead of all dom elements with that class

提交回复
热议问题