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; }
Comments
Post a Comment