CSS - Syntax to select a class within an id

后端 未结 5 897
广开言路
广开言路 2021-01-31 00:57

What is the selector syntax to select a tag within an id via the class name? For example, what do I need to select below in order to make the inner \"li\" turn red?

<         


        
5条回答
  •  花落未央
    2021-01-31 01:52

    Here's two options. I prefer the navigationAlt option since it involves less work in the end:

    
    
    
      
    
    
    
      
      
    
    
    

提交回复
热议问题