2010-07-28 143 views
0

什麼是最簡單的解決方案來自定義網頁中的默認按鈕?CSS:更改按鈕佈局

我需要改變一個按鈕的形狀,從這個:

Default Mac-like button http://dl.dropbox.com/u/72686/button1.png

這樣:

Gmail like button http://dl.dropbox.com/u/72686/button2.png

我寧願不使用JavaScript和我一起您需要跨瀏覽器解決方案(包含IE)。

感謝

+0

哪個「網頁」? – MvanGeest 2010-07-28 10:28:48

+0

[Google的無圖像按鈕...]的可能重複(http://stackoverflow.com/questions/520640/googles-imageless-buttons) – kennytm 2010-07-28 10:35:09

回答

1

好,使用CSS:

input[type=submit] { 
    border:#efefef; 
    padding:2px 5px; 
    background:url('your/gradiented/background') repeat-y; 
    font-weight:bold; 
} 

類似的東西。根據你的口味自定義。