Html 破除长句的方法
我正在为我的网站开发一个iPhone主题,你能不能把这样一个长句打断:Html 破除长句的方法,html,css,iphone,word-wrap,Html,Css,Iphone,Word Wrap,我正在为我的网站开发一个iPhone主题,你能不能把这样一个长句打断: A long sentence would go past the iPhone screen and I need this to break 为此: A long sentence would go past the iPhone screen and I need this to break 表现如下: A long sentence would go past the iPhone screen and I ne
A long sentence would go past the iPhone screen and I need this to break
为此:
A long sentence would go past the iPhone
screen and I need this to break
表现如下:
A long sentence would go past the iPhone screen and I need this to break
如果文本中有空格,则为wrap元素添加宽度将自动打断文本。但是如果您的文本没有空格(例如链接),则可以使用
断开word
:
.your-selector {
word-wrap: break-word;
}
我认为问题在于“视口”比设备屏幕宽。请参阅了解一些背景信息和可能的解决方案。根据:
wordwrap
似乎不再有效,请改用空白