2010-07-30 80 views
0

我目前正在嘗試用圖像替換input.submit按鈕。我成功地做到了這一點,除了似乎有一個圍繞我想要完全消失的圖像的背景,並且它只是圖像。如何擺脫input.submit背景?

這裏是我的CSS:

{width:70px; height:40px; background:transparent url(images/shadow_search.png) no-repeat center top; overflow:hidden;} 

(我試過背景:透明來隱藏它,以及溢出隱藏?)

在此先感謝

回答

2

那將是隻是邊界。

selector { border: 0; } 

應該做的。

+0

哎呀!這工作。謝謝! – LightningWrist 2010-07-30 22:18:25

+0

不客氣。 – BalusC 2010-07-30 22:21:00