Active Menu Highlight CSS

后端 未结 11 903
孤独总比滥情好
孤独总比滥情好 2020-11-29 00:54

I want to highlight the current menu you have click. I\'m using CSS, but it is now working.

here is my css code:

#sub-header ul li:hover{ background-         


        
11条回答
  •  孤城傲影
    2020-11-29 01:45

    Try this (Do copy and paste):

    Test.html:-

    
     
     Home
     About
     Contact
    
    

    style.css:-

    a:link{
     color:blue;
    }
    
    a:visited{
     color:purple;
    }
    
    a:hover{
     color:orange;
    }
    a:focus{
    color:green;
    }
    
    a:active{
     color:red;
    }
    
    a:active{
     color:yellow;
    }
    

提交回复
热议问题