javascript - How to format a button when it is clicked? -


is there way format button in css changes colour when clicked? know ':hover' can used change colour looking similar related left mouse click.

i after general effect of regular button want change colour default blue.

to use :active selector. html:

<button>click me!</button>    

css

button{     background:green; } button:hover{     background:lightgreen; } button:active{     background:red; } 

example


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -