【问题标题】:Difference in the design of asp.net button and hyperlinksasp.net按钮和超链接设计的区别
【发布时间】:2012-03-21 16:16:25
【问题描述】:

我正在尝试将普通html 中的hyperlink 的样式应用于Asp.net 按钮

但是如果我得到一个奇怪的背景会破坏按钮的外观。

超链接:

Asp.net 按钮

想要删除出现在 asp.net 按钮中的这个轮廓

我的 CSS 如下:

 .btn{
    background:url(../images/bg-btn.png) no-repeat;
    width:123px;
    height:45px;
    color:#80460f;
    font-size:13px;
    line-height:36px;
    text-transform:uppercase;
    text-align:center;
    display:block;
    margin:12px 0 0 -10px;
}

【问题讨论】:

    标签: asp.net html css button hyperlink


    【解决方案1】:

    您是否尝试过使用轮廓:0 和边框:0 相同?

           .btn{
            background:url(../images/bg-btn.png) no-repeat;
            width:123px;
            height:45px;
            color:#80460f;
            font-size:13px;
            line-height:36px;
            text-transform:uppercase;
            text-align:center;
            display:block;
            margin:12px 0 0 -10px;
            outline:0;
            border:0;
    

    看看有没有效果...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-09-27
      • 2017-03-29
      • 1970-01-01
      • 2011-11-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多