javascript - markdown的表格中,如果某个cell内容过多,怎么折行
本文介绍了javascript - markdown的表格中,如果某个cell内容过多,怎么折行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
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 |
解决方案
markdown原生的没有换行,也许某种变种的有,但起码原生没有。
你可以用html的换行br。
这篇关于javascript - markdown的表格中,如果某个cell内容过多,怎么折行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文