使用display:flex;
顯示Flex是不是在IE
即工作邊做工精細,我試圖做的圖像居中對齊在<div class="product-image-area">
,Firefox和Chrome,但不是在IE瀏覽器。
CSS:
.horizontal {
display: flex;
justify-content: center;
}
.vertical {
display: flex;
flex-direction: column;
justify-content: center;
}
小提琴這裏:在邊緣,鍍鉻JS Fiddle
結果在IE
的http:// caniuse.com/#feat=flexbox –
你可以嘗試以% –
@JeysinghAnbu的寬度顯示內聯塊,你可以試試這個http://jsfiddle.net/ynk5ccmp/5/ –