Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
菜鸟问题,对于我的网站,如何使文本布局随浏览器的大小而变化?
因此,如果一行文本直接穿过大显示器上的浏览器,然后有人减小了浏览器的大小(或在手机上打开网站),我希望文本向下移动到下一行。
正如基思所建议的,您可以使用:
word-wrap: normal;
或者
word-wrap: break-word;