How to redirect page on button click event

后端 未结 4 764
-上瘾入骨i
-上瘾入骨i 2020-12-31 13:49

I am using a button on my form. How do I link to another web page/file when clicking on that link? Here is the code I tried, but does not work.

4条回答
  •  -上瘾入骨i
    2020-12-31 14:06

    Try this

      
    

    and this the css

    nav
    {
        position:fixed;
        bottom:350px;
        left:600px;
    }
    
    nav ul ul {
        display: none;
    }
    
    nav ul li:hover > ul {
        display: block;
    }
    
    nav ul {
        background: #FFD700; 
        box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
        padding: 0 20px;
        border-radius: 10px;  
        list-style: none;
        position: relative;
        display: inline-table;
        color:black;
    }
    
    nav ul:after {
        content: ""; clear: both; display: block;
    }
    
    nav ul li {
        float: left;
    }
    
    nav ul li:hover {
        background:     #FFD700;
        color:white;
    }
    
    nav ul li:hover a {
        color:black;
    }
    
    nav ul li a {
        display: block; padding: 25px 40px;
        color: maroon; text-decoration: none;
    }
    
    nav ul ul {
        background:     #CFB53B;border-radius: 0px; padding: 0;
        position: absolute; top: 100%;
    }
    
    nav ul ul li {
        float: none; 
        border-top: 1px solid #6b727c;
        border-bottom: 1px solid #575f6a;
        position: relative;
    }
    
    nav ul ul li a {
        padding: 15px 40px;
        color: #fff;
    }   
    nav ul ul li a:hover {
        background: #996515;
    }
    

提交回复
热议问题