Declaring CSS rules to apply only to a particular class

前端 未结 4 1556
小鲜肉
小鲜肉 2021-01-19 15:14

I have the following CSS I need to apply to only a particular div (because of conflicts):

The div in question has the class name datepicker-days. Do I declare the be

4条回答
  •  无人及你
    2021-01-19 15:57

    .datepicker-days { /* Targets the div */ }
    
    .datepicker-days table { /* targets all tables nested in the div */ }
    
    .datepicker-days > table { /*targets only tables that are direct children on the div */ }
    

提交回复
热议问题