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

后端 未结 22 1115
执笔经年
执笔经年 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:54

    IMHO, there is a better and more elegant solution. If your link is this:

    Click me!!!
    

    The corresponding button should be this:

    This approach is simpler because it uses simple html elements, so it will work in all the browsers without changing anything. Moreover, if you have styles for your buttons, this solution will apply the same styles to your new button for free.

提交回复
热议问题