我想为我的网页中的一些按钮创建一个容器/调色板(我真的不知道该怎么称呼),以便将其放入其中并更改其背景颜色和其他一些效果。
您可以在下面的图片中看到我的意思,在页面的左栏中有3个按钮(问题,操作,输出):
did you mean that you want to apply some style to each button(Question, Action, Output)?
<button>Question</button>
<button>Action</button>
<button>Output</button>
button{
background-color: rgb(2, 70, 70);
border-radius: 10px;
padding: 5px;
color: #fff;
border: 1px solid rgb(2, 70, 70);
width: 10%;
}