开发者

Change line break characters in HTML

In Firefox a '/' breaks a line, but in chrome the line continues. How can I tell chrome to allow a line break on '/'?

This is a problem for the middle table on

http://webn开发者_如何学JAVAumbr.com/api


You could surround the '/' with Unicode Zero-Width space characters. (For the links, don't do it for the hrefs)

See here: http://www.fileformat.info/info/unicode/char/200b/index.htm


Use the CSS word wrap property:

word-wrap: break-word

Don't rely on special characters to break words.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜