您可以将按钮放在标签(父标签)中,然后对父标签应用某种样式,例如:
.button-box {
height: 100vh;
background: #3a8484;
width: 10vw;
padding: 10px;
border-radius: 3px;
}
button {
background-color: rgb(2, 70, 70);
border-radius: 10px;
padding: 5px;
color: #fff;
border: 1px solid rgb(2, 70, 70);
width: 100%;
display: block;
margin-bottom: 5px;
}
<div class="button-box">
<button>Question</button>
<button>Action</button>
<button>Output</button>
</div>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句