我正在尋找使用Flexbox來對齊svg和按鈕內的文本,並且所有功能在Chrome和Safari中都能正常工作,但在Firefox中似乎存在問題。Flexbox中的Flexbox內聯flex錯誤
此codepen應該證明現場的問題。 請注意,我正在使用https://github.com/mastastealth/sass-flex-mixin/blob/master/_flex.scss作爲codepen中的外部CSS表單。
http://codepen.io/dominicchapman/pen/EgNgoq
SCSS如下:
.Button {
border: 0 none;
height: 32px;
padding: 0 16px;
font-size: 14px;
background-color: orange;
color: white;
.Icon {
fill: white;
}
&:hover, &:active {
background: red;
}
}
.Button__icon {
@include inline-flex;
@include align-items(center);
.Icon {
margin-right: 11px;
height:16px;
width:6px
}
}
任何幫助將不勝感激。提前致謝。
看來[這已被問](http://stackoverflow.com/q/35464067/1529630)。如果我誤解了問題,我現在不會關閉,我沒有其他瀏覽器來比較結果。 – Oriol