LoginSignup
3
2

More than 3 years have passed since last update.

IE で wbr を使う

Last updated at Posted at 2018-08-30

white-space: nowrap<wbr> 使ってる所が IE で崩れてたので調べました。

.nobreak { word-break: keep-all }
.nobreak wbr::before { content: "\200B" }

参考記事

追記 1

white-space: nowrap は Firefox で wbr が効かない。
word-break: keep-all を利用

サラっと流しててまた同じ事?してハマったので追記。

追記 2

ブラウザ(Firefox と Google Chrome)で改行位置が異なったので、
有る程度ブラウザチェックもして置いた方が良いです。

具体的には括弧 「」 前後で発生していました。
恐らくブラウザ間での禁則処理の違いが原因。
// 解決方法など有りましたらシェアくださいませ。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2