less小知识
- 关于 ~ 的小知识
- 在less中写法:
.test {
width: calc(100px - 3px);
}
- 编译后的css:
.test {
width: 97px; // 编译之后计算出来结果
}
- 在less中添加
~:.test {
width: ~"calc(100px - 3px)";
}
- css结果:
.test {
width: calc(100px - 3px); // 让浏览器去计算结果
}
- 关于 ~ 的小知识
- 在less中写法:
.test {
width: calc(100px - 3px);
}
- 编译后的css:
.test {
width: 97px; // 编译之后计算出来结果
}
- 在less中添加
~:.test {
width: ~"calc(100px - 3px)";
}
- css结果:
.test {
width: calc(100px - 3px); // 让浏览器去计算结果
}
Docusaurus blogging features are powered by the blog plugin.
Simply add Markdown files (or folders) to the blog directory.
Regular blog authors can be added to authors.yml.
The blog post date can be extracted from filenames, such as:
2019-05-30-welcome.md2019-05-30-welcome/index.mdA blog post folder can be convenient to co-locate blog post images:

The blog supports tags as well!
And if you don't want a blog: just delete this directory, and use blog: false in your Docusaurus config.
I can write Markdown alongside my JSX!
Blog posts support Docusaurus Markdown features, such as MDX.
Use the power of React to create interactive blog posts.
<button onClick={() => alert('button clicked!')}>Click me!</button>
This is the summary of a very long blog post,
Use a <!-- truncate --> comment to limit blog post size in the list view.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet