1
右邊的水平線重合桌面和移動Safari中的文本。
如何避免重疊?
的Flex箱問題 - 移動和桌面
http://codepen.io/simply-simpy/pen/EyENLr
h2 {
align-items: center;
display: flex;
font-size: 3.125vw;
margin-top: 0;
position: relative;
width: 100%;
}
h2:after {
border-top: 1px solid #000;
content: "";
display: block;
margin-left: 1.875vw;
width: 100%;
}
h2:before {
border-top: 1px solid #000;
content: "";
display: block;
margin-right: 1.875vw;
width: 100%;
}
.container {
align-items: center;
align-content: center;
text-align: center;
display: flex;
flex-direction: column;
}
<div class="container">
<h2>precision</h2>
</div>
這也是固定的問題與多個單詞疊加:http://codepen.io/simply-simpy/pen/LkdxVG –
真棒!樂意效勞 :) –