当用户缩小浏览器的大小时,如何将文本换行到下一行? [英] How can I make text wrap down to the next line, when a user reduces the size of the browser?
本文介绍了当用户缩小浏览器的大小时,如何将文本换行到下一行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Noob问题,对于我的网站,我怎么能让文本布局随浏览器的大小发生变化?
所以,如果一行文字直接穿过浏览器放在一个大屏幕上,然后有人减小浏览器的大小(或者打开手机上的网站),我希望文本下移到下一行。解决方案
正如Keith所建议的,您可以使用:
word-wrap:正常;
或
word-wrap:break-word;
Noob question, for my website, how can I make the text layout change with the size of the browser?
So if a line of text fits straight across a the browser on a big monitor, then someone reduces the size of the browser (or opens up the site on a phone), I want the text to move down to the next line.
解决方案
As suggested by Keith, you can use:
word-wrap: normal;
or
word-wrap: break-word;
这篇关于当用户缩小浏览器的大小时,如何将文本换行到下一行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文