<html>
<body>
<input type="color" id="myColor"><br><br>
<button onclick="disableBtn()">禁用拾色器</button>
<button onclick="undisableBtn()">启用拾色器</button>
<script>
function disableBtn() {
document.getElementById("myColor").disabled = true;
}
function undisableBtn() {
document.getElementById("myColor").disabled = false;
}
</script>
</body>
</html>