How do I make an html link look like a button?

后端 未结 22 808
执笔经年
执笔经年 2020-11-22 14:03

I\'m using ASP.NET, some of my buttons just do redirects. I\'d rather they were ordinary links, but I don\'t want my users to notice much difference in the appearance. I c

22条回答
  •  失恋的感觉
    2020-11-22 14:42

    By using border, color and background color properties you can create a button lookalike html link!

    a {
    background-color: white;
    color: black;
    padding: 5px;
    text-decoration: none;
    border: 1px solid black;
    }
    a:hover {
    background-color: black;
    color: white;
    
    }
    Open StackOverflow

    Hope this helps :]

提交回复
热议问题