Non-breaking parentheses?

前端 未结 3 1892
孤城傲影
孤城傲影 2021-01-11 16:12

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 equivale

3条回答
  •  一个人的身影
    2021-01-11 16:42

    I have had the same problem; here is a solution which worked:

    The number to call is: (423) 276—0000
    

    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.

提交回复
热议问题