2012-03-03 80 views
0

我想套用樣式hyperlink在正常html的設計到Asp.net按鈕差異在asp.net按鈕和超鏈接

但會發生什麼,如果我得到一個奇怪的背景,敗壞了按鈕出現。

超鏈接:

enter image description here

Asp.net按鈕

enter image description here

要刪除此大綱中出現的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; 
} 

回答

3

你嘗試使用大綱: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; 

看看它是否......

+0

完美的感謝! – vini 2012-03-03 11:06:49