使用CSS创建带边框的按钮组
您可以尝试运行以下代码以创建带有border属性的带边框按钮组
示例
<!DOCTYPE html>
<html>
<head>
<style>
.btn {
color: black;
background-color: yellow;
width: 120px;
text-align: center;
font-size: 15px;
padding: 20px;
float: left;
border: 3px solid blue;
}
.mybtn {
background-color: orange;
}
</style>
</head>
<body>
<h2>Result</h2>
<p>Click below for result:</p>
<div class = "mybtn">
<button class = "btn">Result</button>
<button class = "btn">Result</button>
<button class = "btn">Result</button>
<button class = "btn">Result</button>
<button class = "btn">Result</button>
</div>
</body>
</html>热门推荐
10 广东新居入伙简短祝福语
11 春节拜年祝福语儿童简短
12 简短古文生日祝福语
13 宝宝新年祝福语大全简短
14 鼓励孩子小考祝福语简短
15 送水杯祝福语女生简短
16 简短正能量生日祝福语
17 新年祝福语长辈简短红包
18 阳历新年祝福语大全 简短