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

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

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%"
/>

效果

图片描述 图片描述