Haben Sie ein Problem mit Flexbox und platz zwischen in Firefox 36. Aus unbekannten Gründen Raum dazwischen in Firefox nicht korrekt ist (der seltsame Rand auf der linken Seite), aber perfekt in Google Chrome.Flexbox Stil "justify-Inhalt: Raum-between" falsch ausgerichtet in Firefox mit absolut positionierten Kind
CSS
.form-status {
display: flex;
justify-content: space-between;
position: relative;
&:before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: $gray;
}
.step {
position: relative;
text-align: center;
padding-top: 15px;
color: $gray-light;
&:after {
content: "";
position: absolute;
height: 8px;
width: 8px;
border-radius: 50%;
top: -11px;
left: 50%;
margin-left: -11px;
background: $gray;
border: 8px solid #0c0616;
box-sizing: content-box;
}
&:first-child, &:last-child {
&:before {
content: "";
position: absolute;
top: 0;
left: -100vw;
right: 0;
height: 1px;
background: black;
}
}
&:first-child:before { right: 50%; }
&:last-child:before { left: 50%; }
&.active {
color: white;
&:after { background: $brand-yellow; }
}
}
}
HTML
<div class="page-section page-section-dark page-section-narrow">
<div class="container">
<div class="form-status">
<div class="step {{#ifeq step "one"}}active{{/ifeq}}">
Basic Information
</div>
<div class="step {{#ifeq step "two"}}active{{/ifeq}}">
Agreement
</div>
<div class="step {{#ifeq step "three"}}active{{/ifeq}}">
Payment
</div>
</div>
</div>
</div>
Haben Sie versuchen Sie, Verkäufer Präfixe? – ratherblue
Nein - könnte einen Versuch wert sein. – ControlZ
Lieferanten-Präfixe werden Ihnen nicht helfen; Firefox unterstützt keine Präfixe für moderne CSS-Flexbox (oder vieles andere außer einigen wenigen Legacy-Eigenschaften/-Werten). – dholbert