如何使提交按钮显示为链接? [英] How to make a submit button display as a link?

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

问题描述

这在IE中无效:

  .text-button {background:transparent; 
text-decoration:none;
cursor:pointer; }



< input type =submitclass =text-buttonvalue =vote +/>

它显示一个方形按钮。

解决方案

从此链接复制,您可以使您的按钮看起来像一个链接 -



  .submitLink {background-color:透明; text-decoration:underline; border:none;颜色:蓝色; cursor:pointer;} submitLink:focus {outline:none;}  

 < input type =submitclass =submitLinkvalue =Submit>  

$ b

This is not working in IE:

.text-button { background: transparent; 
               text-decoration: none; 
               cursor: pointer; }



<input type="submit" class="text-button" value="vote+"/>

It displays a square button.

解决方案

Copied from this link you can make your button look like a link -

.submitLink {
  background-color: transparent;
  text-decoration: underline;
  border: none;
  color: blue;
  cursor: pointer;
}
submitLink:focus {
  outline: none;
}

<input type="submit" class="submitLink" value="Submit">

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

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