Comments (5)
- 语法错误,
font
不能只填一个字体,还需要补充其他参数。此处推荐修改为font-family
。 - 对于自定义字体,需要导入对应的资源才可生效。
from md.
- 语法错误,
font
不能只填一个字体,还需要补充其他参数。此处推荐修改为font-family
。- 对于自定义字体,需要导入对应的资源才可生效。
感谢回复!
我尝试修改为
/* 行内代码样式 */
codespan {
font-family: Roboto, monospace;
}
但是仍旧没有效果,可能是没有对应资源?我在这方面是个小白,请教如何导入对应字体
from md.
- 语法错误,
font
不能只填一个字体,还需要补充其他参数。此处推荐修改为font-family
。- 对于自定义字体,需要导入对应的资源才可生效。
感谢回复! 我尝试修改为
/* 行内代码样式 */ codespan { font-family: Roboto, monospace; }但是仍旧没有效果,可能是没有对应资源?我在这方面是个小白,请教如何导入对应字体
你可以先试试加入下面这段代码:
@font-face {
font-family: "Bitstream Vera Serif Bold";
src: url("https://mdn.github.io/css-examples/web-fonts/VeraSeBd.ttf");
}
h1 {
font-family: 'Bitstream Vera Serif Bold', serif;
}
使用参考:
from md.
上面的方式是远程加载字体,而如何使用本地字体,在不改源码的前提下,这或许是个问题。
我想想有什么好的方式去实现。
from md.
上面的方式是远程加载字体,而如何使用本地字体,在不改源码的前提下,这或许是个问题。
我想想有什么好的方式去实现。
感谢回复,后来我将文章发布,发现虽然在浏览器中呈现的是
复制粘贴在微信公众号并发布后,行内代码看起来比较像monospace
形式
from md.
Related Issues (20)
- Vercel 项目完成后域名打开空白
- 支持导出PDF
- 样式建议 HOT 1
- 求教 HOT 1
- 在公众号后台保存之后,格式缺失 HOT 2
- 从mdnice复制的css格式不起作用 HOT 7
- 能否支持引入到vue项目中? HOT 2
- 是否有修改事件回调
- rendering bug of online version
- 公众号 LaTeX 渲染异常 HOT 5
- docker部署后,无法支持公式编辑 HOT 6
- 样式建议
- 数学公式展示不正常 HOT 3
- 是否能支持常规的HTML(without styles)\PDF
- 又拍云图床支持
- gh pages 同步最新版后报错 HOT 4
- 阿里云oss上传访问图片会自动下载 HOT 2
- Mermaid SequenceDiagram的文字颜色复制后不清晰 HOT 2
- Mac 代码块左上角三个图标的显示问题 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md.