0
我努力讓word-wrap: break-word;
在諾基亞Lumia 930(以及其他Windows手機)上工作。有任何想法嗎?文本只是浮動到下一個標籤。如何打破在WP 8.1上運行的IE 11的話?
它似乎在iOS和Android上運行正常。
body {
background: lightblue;
}
.container {
width: 320px;
margin: 20px auto;
border: 1px solid #ebebeb;
background: white;
}
.tabs {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.tab {
width: 25%;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
border-right: 1px solid #ebebeb;
}
.tab:last-child {
border-right: none;
}
.label {
display: block;
margin: auto 0;
text-align: center;
word-wrap: break-word;
}
<div class="container">
<div class="tabs">
<div class="tab">
<span class="label">xxxxxx xxx xxxxxxxxxx</span>
</div>
<div class="tab">
<span class="label">xxxxxx xx xxxxx</span>
</div>
<div class="tab">
<span class="label">xxxx xxxxxx</span>
</div>
<div class="tab">
<span class="label">xxxxxx xx</span>
</div>
</div>
</div>
型號是無關緊要的,重要的是操作系統的版本,以及擴展名,瀏覽器及其版本。 – Stijn
操作系統:Windows Phone 8.1(8.10.14.234.375),瀏覽器:IE 11 –
相關:[爲什麼IE11不包含flexbox中的文本?](http://stackoverflow.com/questions/35111090/why-ie11 -doesnt-總結的文本功能於Flexbox的) –