如何使普通按钮显示为链接按钮 [英] how to make a normal button to appear as a link button

查看:69
本文介绍了如何使普通按钮显示为链接按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我正在使用链接按钮.在按钮单击事件上,我正在执行某些操作.当我用鼠标上的普通按钮替换链接按钮时,它不显示链接.请有人告诉我如何实现此

in my project i am using a link button. on button click event i am doing some action. when i replaced the link button with normal button on mouse over it is not displaying link. please some one tell me how to achieve this

推荐答案

将以下CSS添加到您的按钮
Add Following CSS to your button
.ButtonASLink
{
  border:none;
  background-color:transparent;
  cursor:pointer;
  text-decoration:underline;
  padding: 0px;
}


这篇关于如何使普通按钮显示为链接按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆