不适用
CSS网页制作时实现自动换行的小技巧
声明:资源链接索引至第三方,平台不作任何存储,仅提供信息检索服务,若有版权问题,请https://help.coders100.com提交工单反馈
大家都知道连续的英文或数字能是容器被撑大,不能根据容器的大小自动换行,下面是 CSS如何将他们换行的方法!
对于div
1.(IE浏览器)white-space:normal; word-break:break-all;这里前者是遵循标准。
#wrap{white-space:normal; width:200px; }
或者
#wrap{word-break:break-all;width:200px;}
eg.
ddd1111111111111111111111111111111111
效果:可以实现换行
2.(Firefox浏览器)white-space:normal; w
-
weixiaoying
- 2025-07-01 10:36:35
-
AlcoCalc
- 2025-07-01 10:38:24
-
Agile-Industry-and-Trade-Company-Sales-Management-System
- 2025-07-01 10:41:23
-
auto-plugins-json-translate
- 2025-07-01 10:41:44
-
vue-doc-qa-chat
- 2025-07-01 10:47:24
-
vue-arco-staging
- 2025-07-01 10:48:01
-
UniversalContinuouslightControl
- 2025-07-01 10:53:14
-
MiniQuiz
- 2025-07-01 10:53:38
-
springboot-vue1340
- 2025-07-01 10:59:43
-
ssm2860
- 2025-07-01 11:00:18
-
AIFrameQuest
- 2025-07-01 11:03:25
-
Heritage-App
- 2025-07-01 11:03:48
-
ssm4750
- 2025-07-01 11:06:45
-
springboot-vue1500
- 2025-07-01 11:07:17
-
buiness-feishu-getLocsInfoFrontend
- 2025-07-01 11:10:29
-
OptionListTool
- 2025-07-01 11:10:58
-
CampusToolBox
- 2025-07-01 11:14:30
-
WisdomTree
- 2025-07-01 11:15:04
-
springboot628
- 2025-07-01 11:16:26
-
crontab
- 2025-07-01 11:25:18
-
webApp_input_solution-
- 2025-07-01 11:27:21
访问申明(访问视为同意此申明)
2.如有索引链接发生失效情况请【联系客服】自助退回)
3.是否访问均为用户自主行为,本站只提供搜索服务不提供技术支持,感谢您的支持