In the footer of a flexible-layout website I've noticed that IE tends to line-wrap on parenthesis characters (in a phone number in this case). Is there a visually equivalent non-breaking parenthesis, in a similar vein to non-breaking spaces and non-breaking hyphens, that I can use instead?
相关问题
- Views base64 encoded blob in HTML with PHP
- How to fix IE ClearType + jQuery opacity problem i
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
I have had the same problem; here is a solution which worked:
According to the Unicode Standard (specifically, UAX #14), a line break is not permitted before or after a no-break space. Therefore, the prevents the browser from line-breaking on the parentheses. In either case, it doesn't hurt to have a space between the area code and the phone number.
I ran into this issue with a plural treatment like "user(s)" where IE breaks the word after the R. You should be able to use the word joiner character (⁠), but in my test with IE11, only the deprecated zero-width non-breaking space character worked:
Try this:
You can do many other things (from
<nobr>
tag to certain Unicode chars) but they aren't as cross-browser as this.