Can I use DIV class and ID together in CSS?

后端 未结 9 1476
名媛妹妹
名媛妹妹 2020-12-25 10:21

Can I use DIV Class and ID together in CSS? For example:

--
9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-25 10:50

    Yes, why not? Then CSS that applies to class "x" AND CSS that applies to ID "y" applies to the div.

提交回复
热议问题