开发者

Change line break characters in HTML

开发者 https://www.devze.com 2022-12-18 22:56 出处:网络
In Firefox a \'/\' breaks a line, but in chrome the line continues. How can I tell chrome to allow a line break on \'/\'?

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

精彩评论

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

关注公众号