0

私はword-wrap: break-word;をNokia Lumia 930(およびおそらく他のWindows Phone)で動作させるのに苦労しています。何か案は?テキストは次のタブに移動します。WP 8.1で実行されているIE 11で単語を分割する方法は?

iOSとAndroidでは正常に動作しているようです。 .labelalign-self: stretch追加

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>

+1

モデル番号は無関係です。重要なのはOSのバージョン、拡張子はブラウザとそのバージョンです。 – Stijn

+0

OS:Windows Phone 8.1(8.10.14.234.375)、ブラウザ:IE 11 –

+1

関連:[IE11でフレックスボックスにテキストが折り返されないのはなぜですか?](http://stackoverflow.com/questions/35111090/why-ie11 -doesnt-wrap-the-text-in-flexbox) –

答えて

0

はそれを解決します。

.label{ 
    align-self: stretch 
} 
関連する問題