버튼의 배경색을 변경하려면 background-color를 사용하세요. 재산.
다음 코드를 실행하여 버튼의 배경색을 변경할 수 있습니다.
예시
<!DOCTYPE html>
<html>
<head>
<style>
.btn {
background-color: yellow;
color: black;
text-align: center;
font-size: 13px;
}
</style>
</head>
<body>
<h2>Result</h2>
<p>Click below for result:</p>
<button class = "btn">Result</button>
</body>
</html>