【发布时间】:2021-05-22 01:46:24
【问题描述】:
这是(错误的)代码:
.btn-group .button {
background-color: #fffff1;
border: 0px solid black;
border-radius: 8px;
border-bottom: 1px solid black;
color: #3c4043;
padding: 15px 32px;
text-align: center;
text-decoration: none;
font-size: 16px;
cursor: pointer;
width: 150px;
display: block;
}
.button1 {
border-bottom: 1px solid black;
}
.btn-group .button:not(:last-child) {
}
.btn-group .button:hover {
background-color: #fffff1;
box-shadow: 0 0px 4px 0 rgba(0,0,0,0.24), 0 0px 32px 0 rgba(0,0,0,0.19);
}
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="btn-group">
<button class="button button1">Button</button>
<button class="button button2">Button</button>
<button class="button button3">Button</button>
<button class="button button4">Button</button>
</div>
</body>
</html>
所需的结果(图像经过照片处理): image (请帮帮我)
我试图将按钮长度的边框限制为一定大小
【问题讨论】: