adi bon
adi bon

Reputation: 311

iphone web app css button :active not working

i am coding an iphone web app and i am trying to change the background image of a button through css. The :active event however on the iphone safari browser doesnt work when i click on the button. Is there some css hotfix for this? thanks

Upvotes: 2

Views: 1695

Answers (1)

Sven
Sven

Reputation: 13296

Try this, it should make it work: <a ontouchstart="">Link</a>. You can also apply it to the body element to fix more than one button at once.

Upvotes: 4

Related Questions