CSS not modifying link properties

前端 未结 5 1460
离开以前
离开以前 2020-12-22 13:41

Whatever I try to do, I can\'t modify the color of my links ( want to create a color rollover effect). They always stay the same default blue color with the underline effec

5条回答
  •  抹茶落季
    2020-12-22 14:23

    **#nav li {
        display:inline;
        margin:0;
        padding:0;
        width:160px;
        float:left;**
    
    
    #nav li:hover {
        background-color: #faffd8;
        border-color: #004f7b;
    
    
    }
    
    #nav a {
    
        color: #000;
        text-decoration: none;
    }
    
    
    #nav a:link {
        color: #333333;
        text-indent: -9999px;
        text-decoration: none;
    
    
    }
    
    #nav a:hover {
        color: #000000;
        text-decoration: none;
    
    
    
    }
    
    #nav a:visited{
        color: #999999;
        text-decoration: none;
    
    
    }
    
    #nav a:active {
        color: #000000;
        text-decoration: none;
    
    }
    
    **#topcontent p
    {
        color: #444444;
    
    }
    
    
    }**
    

    ** check starred CSS Styles there no closing for first CSS style also extra closing for last one

提交回复
热议问题