Markdown中如何嵌入CSS?

您所在的位置:网站首页 markdown写html Markdown中如何嵌入CSS?

Markdown中如何嵌入CSS?

2022-11-06 04:31| 来源: 网络整理| 查看: 265

一:在markdown文件里引入css文件

在markdown文件开头处引入css文件:

你的css文件名.css 替换成你实际的css文件的路径

二:在markdown文件里面定义css样式。

在文件开头输入 css相关 设置,语法和html中一样

用标签包含起来

.heading1 { color: red; font-weight:700; font-size: 35px; } .heading2 { color: blue; font-weight:700; font-size: 30px; } # Markdown heading styles {#identifier .heading1} ## Markdown heading styles {#identifier .heading2}

header h1 { font-size: 20px; letter-spacing: 3px; text-transform: uppercase; text-align: center; color: black; /*rgba(255, 49, 55, .97);*/ margin-top: 15px; font-family: 'Roboto', sans-serif; } #wrapper { display: flex; flex-direction: column; justify-content: center; align-items: center; } textarea#editor { border: 5px solid rgb(15,15,15); letter-spacing: 0.5px; color: black; font-family: 'Roboto'; background-color: white; outline: none; resize: none; border-radius: 3px; width: 44vw; height: 20vh; margin: 20px 10vh; padding: 5px; } textarea::placeholder { letter-spacing: 0.5px; color: black; } #black-horizontal-divider { width: 80vw; border-radius: 3px; height: 0.5vh; background-color: black; display: inline-block; }



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3