<html>
<head>
<style>
    button {
        background-color: white;
    }
    button:active {
        background-color: green;
    }
</style>
</head>
<body>
<button>按下我</button>
</body>
</html>
Dreamweaver 按键变色代码:按下变绿,松开变白