JSFiddle - React, Tailwind, and code Playground
by urashita
HTML
マウスオーバーで赤色
<body>
<a class="button" href="#" onClick="window.alert('ウィンドウがポップアップ'); return false;" ontouchstart="" >ボタン </a>
</body>
CSS
.box:active {
background-color: red;
}
.box:hover {
background-color: red;
}
.button {
display: inline-block;
padding: 5px 10px;
background-color: green;
color: white;
border: 1px solid;
text-decoration: none;
font-size: 20px;
}
.button:hover {
background-color: red;
}
.button:active {
background-color: blue;
}