1 添加 按钮
<template>
<div class="button-container">
<button>按钮1</button>
<button>按钮2</button>
<button>按钮3</button>
</div>
</template>
2 设置样式 --> div的 class 后面跟 button
.button-container button {
/* 这里是你想设置的样式 */
background-color: red;
color: white;
}

这段代码展示了如何在HTML中创建一个包含三个按钮的容器,并使用CSS进行样式定制。按钮的背景颜色被设置为红色,文字颜色设为白色。

3143

被折叠的 条评论
为什么被折叠?



