如何使按钮看起来像一个链接? [英] How to make button look like a link?

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

问题描述

我需要使按钮看起来像使用CSS的链接。更改完成,但当我点击它,它显示,就像它被推到一个按钮。

I need to make a button look like a link using CSS. The changes are done but when i click on it, it shows as if its pushed as in a button. Any idea how to remove that so that the button works as a link even when clicked?

推荐答案

HTML



HTML

<button>your button that looks like a link</button>



CSS



CSS

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

这篇关于如何使按钮看起来像一个链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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