css - 将按钮转换为超链接

标签 css

我有一个按钮,我想将该按钮转换为一个超链接,它在 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/

相关文章:

html - 将图像粘贴在页面右侧

html - 在完美的中间对齐两个元素

html - 根据标题宽度过渡

html - 如何使 div 高度响应?

html - 如何使 float 扩展宽度?

html - 调整浏览器窗口大小时文本重叠导航栏

css - Div 内的 Div 对齐?

html - 响应式 svg 在 safari 中没有全宽

javascript - 将计算结果设置为 ng 样式标记 Angular.js 中的百分比

javascript - 使用 JavaScript 创建预制的 CSS 变量