CSS precedence

前端 未结 8 975
南笙
南笙 2020-11-27 05:52

My webpage contains:



Although your div has both ID and a class, the ID rule will override the .class rule.

To read more about CSS rules priorities, I'd recommend http://www.w3.org/TR/CSS2/cascade.html#specificity.

提交回复
热议问题