入门指南
语法速查表
基本语法
标题语法
段落语法
换行语法
强调语法
引用语法
列表语法
代码语法
分隔线语法
链接语法
图片语法
转义字符语法
内嵌 HTML 标签
扩展语法
扩展语法可用性
表格
围栏代码块
脚注
标题编号
定义列表
删除线
任务列表语法
使用 Emoji 表情
Highlight
Subscript
自动网址链接
禁止自动将 URL 转换为链接
Hacks
Underline
Indent (Tab)
Center
Color
Comments
Admonitions
Image Size
Image Captions
Link Targets
Symbols
Table Formatting
Table of Contents
Videos
书写工具
Image Captions - markdown入门指南 - 笔下光年
网站首页
Image Captions
Markdown doesn’t natively support image captions, but there are two possible workarounds. If your Markdown application supports <a href="http://www.bixiaguangnian.com/manual/markdown/4111.html">HTML</a>, you can use the <code>figure</code> and <code>figcaption</code> HTML tags to add a caption for your image. ```markdown <figure> <img src="/uploads/images/20240512/e9821e1a45fd579e49a1b9abbb38e192.png" alt="markdown入门指南"> <figcaption>markdown入门指南</figcaption> </figure> ``` The rendered output looks like this: <figure> <img src="/uploads/images/20240512/e9821e1a45fd579e49a1b9abbb38e192.png" alt="markdown入门指南"> <figcaption>markdown入门指南</figcaption> </figure> <div class="callout callout-success mb-3"><strong>Tip:</strong> If your Markdown application supports CSS, you can use CSS to style the appearance of the caption. </div> If your Markdown application doesn’t support HTML, you could try placing the caption directly below the image and using <a href="http://www.bixiaguangnian.com/manual/markdown/4103.html">emphasis</a>. ```markdown ![markdown入门指南](/uploads/images/20240512/e9821e1a45fd579e49a1b9abbb38e192.png) *markdown入门指南* ``` The rendered output looks like this: ![markdown入门指南](/uploads/images/20240512/e9821e1a45fd579e49a1b9abbb38e192.png) *markdown入门指南*
上一篇:
Image Size
下一篇:
Link Targets