我有一个按钮,我想将该按钮转换为一个超链接,它在 Mozilla 中工作正常,但在 Internet Explorer 中它按下按钮作为一个点击发生......所以请帮助......
Input.Button-Link, input.Button-Link:active
{
border: 0px;
behavior: url("cssHover.htc");
padding: 0px;
width: auto;
overflow: visible;
background: transparent;
color: Blue;
text-decoration: underline;
display: inline-block;
}
input.Button-Link:active
{
padding-right:50px;
outline:0;
}
Input.Button-Link:hover
{
cursor: pointer;
}
最佳答案
我不明白你想要完成什么,但这里有一些你可以尝试的事情:
- 将样式添加到
input.Button-Link:focus
- 通过使用
<input type="image" src="button.gif" alt="Button" />
- 结合 jQuery 使用 this用于设置按钮样式的插件
关于css - 将按钮转换为超链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1497077/