CSDN markdown使用技巧

  1. 插入表格
    利用excel编辑表格
    markdown支持html语法,所以我们可以先使用excel生成我们需要的表格,然后将其转化为html格式放入markdown中:

使用excel创建一个表格
在这里插入图片描述

将excel表格导出为html格式
选定表格,单击另存为,选择导出格式为html,此时可选择所需表格区间
在这里插入图片描述
保存后用记事本打开生成的html文件,将其中vim<table> </table> 间的数据复制到markdown中:

<table border=0 cellpadding=0 cellspacing=0 width=207 style='border-collapse:
 collapse;table-layout:fixed;width:156pt'>
 <col width=69 span=3 style='width:52pt'>
 <tr height=19 style='height:14.0pt'>
  <td colspan=2 height=19 class=xl636101 width=138 style='height:14.0pt;
  width:104pt'>合并行</td>
  <td class=xl156101 width=69 style='width:52pt'>c1</td>
 </tr>
 <tr height=19 style='height:14.0pt'>
  <td height=19 class=xl156101 style='height:14.0pt'>a2</td>
  <td rowspan=2 class=xl636101>合并列</td>
  <td class=xl156101>c2</td>
 </tr>
 <tr height=19 style='height:14.0pt'>
  <td height=19 class=xl156101 style='height:14.0pt'>a3</td>
  <td class=xl156101>c3</td>
 </tr>
 <tr height=19 style='height:14.0pt'>
  <td height=19 class=xl156101 style='height:14.0pt'>a4</td>
  <td colspan=2 rowspan=2 class=xl636101>大合并</td>
 </tr>
 <tr height=19 style='height:14.0pt'>
  <td height=19 class=xl156101 style='height:14.0pt'>a5</td>
 </tr>
 <![if supportMisalignedColumns]>
 <tr height=0 style='display:none'>
  <td width=69 style='width:52pt'></td>
  <td width=69 style='width:52pt'></td>
  <td width=69 style='width:52pt'></td>
 </tr>
 <![endif]>
</table>
————————————————
转载:
版权声明:本文为CSDN博主「aladdin_sun」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/sunbocong/article/details/81033915
  1. 文字改变颜色
<font color=red>123<font>

123

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值