IE long link wrong break

Does anyone know how to prevent the misuse of IE URLs (7)?

Here is an example: http://jsfiddle.net/uQcj5/5/

The problem is that IE breaks the url inside the words, for example:

http://stackoverflow.com/que
stions/
+3
source share
4 answers
var str = 'http://stackoverflow.com/questions/10620008/ie-long-link-wrong-break'
str = str.replace(/\//g, '/​');

http://jsfiddle.net/uQcj5/10/

+1
source

You tell the browser to break in the middle of words, just remove it word-wrap: break-word;from your CSS.

+2
source

CSS :

white-space: nowrap;

Edit

, , <div>. , : &#8203; , .

&#8203; .

+1

word-wrap: break-word, wbr:after { content: "\00200B"; } <wbr> , .

<div><a href="#">http://stackoverflow.<wbr>com/<wbr>questions</a></div>

( ) , . http://www.cs.tut.fi/~jkorpela/html/nobr.html

, URL- "-", , .

, URL- . ; URL- href , . , URL- , URL- , URL- .

+1

All Articles