如何在MARKDOWN编辑器设置表格的宽度? |
您所在的位置:网站首页 › 表格宽度设置为与页面同宽 › 如何在MARKDOWN编辑器设置表格的宽度? |
MARKDOWN文档中可以通过“|”分隔多行字符的语法来定义二维的表格。表格的每一栏的宽度是由MARKDOWN自行根据显示的内容进行调整的。 下面给出了对应的一个示例: 示例:表格示例 Name | Value -------|------------------- `Value-One` | Long explanation `Value-Two` | Long explanation `etc` | Long explanation NameValueValue-OneLong explanationValue-TwoLong explanationetcLong explanation现在出现一个问题: 如何调整表格的每一栏的宽度呢? 在博文 Set table column width via Markdown 中,给出了在MARKDOWN中设置表格的多个方法。 1.在表格头中增加空白长度 Name ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;; ; ; ; ; ; | Value -------|------------------- `Value-One` | Long explanation `Value-Two` | Long explanation `etc` | Long explanation Name ValueValue-OneLong explanationValue-TwoLong explanationetcLong explanation下面的表格使用&emsp替代,&emsp 相当于四个。 Name ValueValue-OneLong explanationValue-TwoLong explanationetcLong explanation 2.使用标志 name|value -|- window|hello| namevaluewindowhello 3.使用div标志 | property | description | | --------------------------------------- | ------------------------------------- | | `border-bottom-right-radius` | Defines the shape of the bottom-right | property descriptionborder-bottom-right-radiusDefines the shape of the bottom-right |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |