2012-07-01 112 views

回答

3
#element:hover { color: #fff; } 
#element:active { color: #000; } 
+0

非常感謝。你會推薦用我目前的設計去做什麼顏色? – methuselah

+0

@methuselah紅色當你徘徊時,更活躍的黃綠色:) [見](http://jsfiddle.net/snmSq/2/) –

+0

我建議你用深綠色填充整個按鈕時盤旋,或切換顏色(淺綠色 - >下,深綠色 - >向上)。 –

3

你有沒有嘗試添加:懸停上課嗎?例如:

button.signup:hover {background:red;} 

要中心我會將按鈕包裝在一個div然後居中。

+0

點擊按鈕怎麼樣?我應該使用什麼? – methuselah

1

對於水平居中使用margin-left:auto; margin-right:auto,垂直:margin-top:auto; margin-bottom:auto或者簡單地float:爲所有這些的中心,但要小心,因爲浮動總是會產生問題