Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
53
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

URLが自動改行してくれない問題

Posted at

長いURLをDOMの中に流し込むと、DOMにwidth指定しているにも関わらず、
そのwidth幅以上にDOMが広がってしまうことがあります。
URLは自動改行してくれない場合があるためです。

そんなとき、単語の途中であっても強制的に改行してくれるようにするcssプロパティが、

word-break: break-all;

となります。

53
37
1

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
53
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?