【发布时间】:2022-01-27 04:04:44
【问题描述】:
我尝试为网站设置样式,当我按 TAB 键浏览按钮时,出现了一个奇怪的亮点。它应该只是按钮的边框,但在提供的图像中它看起来不是那样的。如果你能告诉我原因,我会很高兴。 这是代码/设计的 css 和 html 图像。
.pagination-buttons {
position: absolute;
bottom: -40px;
left: 50%;
transform: translate(-50%, 0);
}
.pagbut {
background-color: white;
width: 16px;
height: 8px;
border: 1px solid #06d6a0;
border-radius: 100px;
cursor: pointer;
}
.button-fill {
background-color: #06d6a0;
}
<div class="pagination-buttons pagi-design">
<button class="pagbut"> </button>
<button class="pagbut button-fill"> </button>
<button class="pagbut"> </button>
<button class="pagbut"> </button>
</div>
【问题讨论】: