Submit a form using anchor element, without javascript

后端 未结 4 1734
傲寒
傲寒 2021-02-19 17:01

How to replace the submit button with a link without using javascript ? is there any way to add the submit attribute to a link ? because the form will not be sent by a simple li

4条回答
  •  你的背包
    2021-02-19 17:41

    Try this:

    CSS

    button {
        background:none!important;
        border:none; 
        padding:0!important;
        /*border is optional*/
        border-bottom:1px solid #444; 
    }
    

    HTML

    
    

提交回复
热议问题