我正在爲一個客戶端在網站上工作,他們需要每個頁面的標題,在頁面上有一個從左到右伸展的單詞,每個字符之間有一條黑線。字母之間的間隔相等間隔
隨着@Paulie_D的幫助下,我成功地建立了柔性財產上使用此代碼本網站http://s-p-o-k.se/web/om-spok/:
<div id="header-text">
<span class="first"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/Oo.svg"></span>
<span><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/M.svg"></span>
</div>
#header-text {
width: 100%;
display: flex;
justify-content:;
font-weight: 700;
font-family: 'pduregular';
color: #000;
max-width: 100%;
height: 160px;
}
#header-text span {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
flex: 1;
align-items: center;
}
#header-text span::after {
content: ' ';
flex: 1;
height: 15px;
background: #000;
}
#header-text span:last-child {
flex: 0;
margin-left: 10px;
}
這在Firefox中運作良好,但在Safari中它不顯示最後一個孩子。我試圖環顧四周,但我找不到可能導致這種情況的原因。有人有想法嗎?
最好的問候,馬庫斯
這裏是原來的問題,我的解決方案 - http://stackoverflow.com/questions/35336960/equal-spacing-between-characters- with-stroke-in-between –