惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
B
Blog
小众软件
小众软件
Jina AI
Jina AI
WordPress大学
WordPress大学
V
V2EX
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
Y
Y Combinator Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
人人都是产品经理
人人都是产品经理
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
C
CERT Recently Published Vulnerability Notes
C
Cisco Blogs
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
K
Kaspersky official blog
Google DeepMind News
Google DeepMind News
宝玉的分享
宝玉的分享
T
Threat Research - Cisco Blogs
S
Securelist
V
Vulnerabilities – Threatpost
雷峰网
雷峰网
F
Fortinet All Blogs
D
DataBreaches.Net
I
Intezer
D
Docker
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
SecWiki News
SecWiki News
MyScale Blog
MyScale Blog
腾讯CDC
博客园_首页
Martin Fowler
Martin Fowler
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Application and Cybersecurity Blog
Application and Cybersecurity Blog
H
Help Net Security
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
L
Lohrmann on Cybersecurity
I
InfoQ
H
Hacker News: Front Page
T
Threatpost
Stack Overflow Blog
Stack Overflow Blog
博客园 - 叶小钗
T
Troy Hunt's Blog
Microsoft Security Blog
Microsoft Security Blog

Captain的Blog

QuickClash Monument_Valley_2 Typora eu.org域名注册 PDF X Change Editor Plus 几何画板 Markdown1-基础语法 Test
Markdown2-Html标签
UlinoyaPed · 2023-01-16 · via Captain的Blog

简介

Markdown文件会根据CSS文件生成基于Html的预览,所以Markdown支持部分Html标签。

前文中已经使用了一些Html标签,如红色字体和图片圆角。

更改文字颜色和大小

<font>标签

可以使用

1
<font size="5px" color="red">红色,5px大小</font>

红色,5px 大小

警告

<font>标签在将来会被启用,请尽快改为CSS Style形式!

CSS Style

使用<p style="">标签来为文字添加颜色、大小、背景等元素

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<p
  style="
    display: inline;
    color: red;
    background-color: #eee;
    font-size: 15px;
    border-radius: 5px;
    padding: 2px;
  "
>
  效果
</p>

CSS效果

Markdown默认效果

下面逐个解析:

  1. display: inline控制行内效果(<p>标签默认占一整行),添加后可以连续添加文字。
  2. color: red控制颜色为红色,也可以使用16进制RGB颜色等方式表示。
  3. background-color: #eee控制背景颜色为灰色(#eee#eeeeee#1af#11aaff)。
  4. font-size: 15px控制字体大小(与<font>标签大小可能有出入),单位还有cminvh等。
  5. border-radius: 5px控制圆角边框。
  6. padding: 2px控制内边距。

<img>标签

<img>标签可以添加图片

1
2
3
4
5
6
7
<img src="/captain.png" alt="图片描述" style="zoom: 20%;border-radius: 10%" />
<img
  src="/captain.png"
  alt="图片描述"
  width="100px"
  style="border-radius: 10%"
/>

效果

图片描述 图片描述