javascript - markdown的表格中,如果某个cell内容过多,怎么折行
高洛峰
高洛峰 2017-04-11 11:00:06
[JavaScript讨论组]

markdown的表格中,如果某个cell内容过多,怎么折行?

| Left Aligned  | Center Aligned  | Right Aligned |
|:------------- |:---------------:| -------------:|
| col 3 is      | some wordy text |         $1600 |
| col 2 is      | centered        |           $12 |
| zebra stripes | are neat        |            $1 |
Left Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1

如果我某个cell中的内容过长呢。怎么处理呢。麻烦大神现身,google了好久『markdown中表格内容折行』没有找到解决办法。

我自己试验的是(错误的):

| Left Aligned  | Center Aligned  | Right Aligned |
|:------------- |:---------------:| -------------:|
| col 3 is      | some wordy text |         $1600 |
| col 2 is xxxx | centered        |           $12 |
| xxxxxxxx      |                 |               |
| zebra stripes | are neat        |            $1 |

得到的是:

Left Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is xxxx centered $12
xxxxxxxx
zebra stripes are neat $1
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

全部回复(2)
PHP中文网

markdown原生的没有换行,也许某种变种的有,但起码原生没有。

你可以用html的换行br。

PHP中文网

可以用html标签

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号