0

I am developing an HTML5 web page for mobile. On mobile device, we can't detect hover event. So, how to change the background of button when I press it by my finger?

Update: One simple example of what I want is the button "Google Search" of google main page: https://www.google.com.vn/

Thanks.

4

1 回答 1

1

I found the solution as below. Hope this helps

button:ACTIVE {
    background: aqua;
}

button {
    background: green;
}
于 2012-12-04T09:45:07.200 回答