What does the dot mean in CSS?

后端 未结 5 1559
离开以前
离开以前 2020-11-27 03:59

Can someone explain the difference for these two CSS selectors?

.work-container . h3 {
font-size: 14px;
margin-top: 0px;
font-weight: 600;
height: 27px;
} 
<         


        
5条回答
  •  [愿得一人]
    2020-11-27 04:38

    . says its class

    # means its an id

    and if there is nothing but the selector, then it is a tag

提交回复
热议问题