我需要其他方法在一行中創建2個元素(1個左對齊和1個右對齊)。我用display: flex;
和iOS 9 Safari瀏覽器上正常顯示,但它不會正確地在Safari上的iOS 6顯示css - 需要替代方法來將2個元素在一行中對齊
它應該像這樣(的iOS 9) http://i.stack.imgur.com/SO3RM.jpg
這裏是iOS 6的 http://i.stack.imgur.com/jHK5l.jpg
我的CSS代碼
.signedlatest {
font-family: "sfns_displayregular";
font-size: 13pt;
font-color: #ffffff;
background: #ffffff;
display: flex;
justify-content: space-between;
margin: 0;
border-top-style: solid;
border-bottom-style: solid;
border-color: gray;
border-width: 0.5px;
line-height: 250%;
padding-left: 0.3cm;
padding-right: 0.3cm;
}
HTML
<div class="signedlatest>
<a>iPhone 6S Plus</a>
<a>iOS 9.3.4</a>
.........
<a>iPhone 4S</a>
<a>iOS 9.3.4</a>
</div>
你試過浮他們左右(後來清) ? – lynxlynxlynx