首页 > Web开发 > 详细

Meta Post

时间:2019-11-14 10:40:11      阅读:93      评论:0      收藏:0      [点我收藏+]
$\require{color} \require{enclose}$

写博客的一些技巧和工具。

\require{color}
\colorbox : box with a background color
\colorbox{<color>}{<text>}
\colorbox{yellow}{test} $\colorbox{yellow}{text}$ $\colorbox{yellow}{$a^2+b^2=c^2$}$ \colorbox{yellow}{\$a^2+b^2=c^2\$}
Notice that the box is a bit too high when the content is pure text.

\fbox : framed box
\fbox{text} $\fbox{text}$ $\fbox{$a^2+b^2=c^2$}$ \fbox{\$a^2+b^2=c^2\$}
Again the box is a bit too high when the content is pure text.

\fcolorbox: a box with both a frame color and a background color.
\fcolorbox{<frame color>}{<background color>}{<text>}
\fcolorbox{red}{blue}{text} $\fcolorbox{red}{blue}{text}$ $\fcolorbox{red}{blue}{$a^2+b^2=c^2$}$ \fcolorbox{red}{blue}{\$a^2+b^2=c^2\$}

\require{enclose}
\enclose{roundedbox}{a^2+b^2 = c^2} $\enclose{roundedbox}{a^2+b^2 = c^2}$

References

https://chemistry.meta.stackexchange.com/q/3540

Meta Post

原文:https://www.cnblogs.com/Patt/p/11854714.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!