class overrule when two classes assigned to one div

前端 未结 5 579
情话喂你
情话喂你 2020-12-13 01:45

I was creating a

tag in which I wanted to apply two classes for a
tag which would be a thumbnail gallery. One class for its
5条回答
  •  遥遥无期
    2020-12-13 01:55

    The class that is defined last in the CSS have priority, if nothing else applies.

    Read up on CSS priority to see how it works.

提交回复
热议问题