【发布时间】:2018-09-12 00:52:00
【问题描述】:
我有一个具有以下样式的按钮类:
.button {
align-items: center;
background-color: #fff;
border: 2px solid;
border-color: #f48120;
color: #f48120;
cursor: pointer;
display: inline-flex;
font-size: 20px;
font-weight: bold;
justify-content: center;
margin-bottom: 5px;
padding: 3px 10px;
position: relative;
text-transform: lowercase;
}
.button::after {
background-color: #fff;
bottom: -4px;
content: '\f111';
display: flex;
font-family: 'FontAwesome';
font-size: 5px;
justify-content: center;
position: absolute;
width: 25%;
}
<button class="button">Enviar</button>
如果我取消选中然后再次检查检查器中的“位置:绝对”属性,则圆圈将在中心对齐。这是 Blink/Webkit 错误吗?
【问题讨论】:
标签: html css flexbox css-position