使用MarkDown编辑器做出有意思的柱状图(完整代码)

这是生成的效果
<menclose notation="box"> <mstyle displaystyle="false" scriptlevel="0"> <mstyle displaystyle="true" scriptlevel="0"> <mstyle mathcolor="white"> { <mstyle displaystyle="false" scriptlevel="0"> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mstyle mathcolor="&#35;A9A9A9"> <mstyle displaystyle="false" scriptlevel="0"> <mpadded voffset="90pt"> </mpadded> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mpadded voffset="90pt"> </mpadded> </mstyle> </mstyle> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mstyle mathcolor="&#35;000000"> <mstyle mathsize="0&#46;7em"> <mtext> 0 </mtext> <mtext> 50 </mtext> <mtext> 100 </mtext> </mstyle> </mstyle> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mstyle mathcolor="&#35;000000"> <mtext mathvariant="bold"> 基础信用: </mtext> <mtext> 100 </mtext> </mstyle> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mpadded height="&#43;6pt" lspace="3pt" mathbackground="&#35;F39C11" style="border&#58; 0&#46;04em solid &#35;000000" voffset="3pt" width="&#43;6pt"> <mstyle mathsize="1em"> <mpadded width="0px"> <mphantom> <mtext> + </mtext> </mphantom> </mpadded> </mstyle> </mpadded> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mstyle mathcolor="&#35;000000"> <mtext mathvariant="bold"> 练习情况: </mtext> <mtext> 61 </mtext> </mstyle> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mpadded height="&#43;6pt" lspace="3pt" mathbackground="&#35;52C41A" style="border&#58; 0&#46;04em solid &#35;000000" voffset="3pt" width="&#43;6pt"> <mstyle mathsize="1em"> <mpadded width="0px"> <mphantom> <mtext> + </mtext> </mphantom> </mpadded> </mstyle> </mpadded> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mstyle mathcolor="&#35;000000"> <mtext mathvariant="bold"> 社区贡献: </mtext> <mtext> 25 </mtext> </mstyle> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mpadded height="&#43;6pt" lspace="3pt" mathbackground="&#35;52C41A" style="border&#58; 0&#46;04em solid &#35;000000" voffset="3pt" width="&#43;6pt"> <mstyle mathsize="1em"> <mpadded width="0px"> <mphantom> <mtext> + </mtext> </mphantom> </mpadded> </mstyle> </mpadded> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mstyle mathcolor="&#35;000000"> <mtext mathvariant="bold"> 比赛情况: </mtext> <mtext> 0 </mtext> </mstyle> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mpadded height="&#43;6pt" lspace="3pt" mathbackground="&#35;FADB14" style="border&#58; 0&#46;04em solid &#35;000000" voffset="3pt" width="&#43;6pt"> <mstyle mathsize="1em"> <mpadded width="0px"> <mphantom> <mtext> + </mtext> </mphantom> </mpadded> </mstyle> </mpadded> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mstyle mathcolor="&#35;000000"> <mtext mathvariant="bold"> 获得成就: </mtext> <mtext> 0 </mtext> </mstyle> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mpadded height="&#43;6pt" lspace="3pt" mathbackground="&#35;E74C3C" style="border&#58; 0&#46;04em solid &#35;000000" voffset="3pt" width="&#43;6pt"> <mstyle mathsize="1em"> <mpadded width="0px"> <mphantom> <mtext> + </mtext> </mphantom> </mpadded> </mstyle> </mpadded> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <mstyle mathcolor="&#35;000000"> <mtext mathvariant="bold"> 总估值: </mtext> <mtext mathvariant="bold"> 186 </mtext> </mstyle> </mstyle> </mstyle> </mstyle> </mstyle> </menclose> \def{\cGreen}{#52C41A} \def{\cOrange}{#F39C11} \def{\cYellow}{#FADB14} \def{\cRed}{#E74C3C} \def{\colorOfLine}{#A9A9A9} \def{\colorOfDivide}{#000000} \def{\colorOfName}{#000000} \def{\colorOfBox}{#000000} \def{\colorOfContent}{#000000} \newcommand{\item}[2]{\color{\colorOfName}\textbf{#1:}\text{#2} & } \newcommand{\add}[2]{ \fcolorbox{\colorOfBox}{#2}{\normalsize\vphantom{+}\kern{#1 mm}} } \newcommand{\main}[6]{ \boxed{ \color{white}\begin{cases} &\color{\colorOfLine}\kern{4pt}\begin{vmatrix}\raisebox{90pt}{}\kern{48.56mm}\end{vmatrix}\kern{-5.5pt}\begin{vmatrix}\raisebox{90pt}{}\kern{48.56mm}\end{vmatrix} \\[-108pt] &\color{\colorOfDivide}\scriptsize\kern{4 pt}\text{0}\kern{48.2 mm}\text{50}\kern{47 mm}\text{100} \\[3pt] \item{基础信用}{#1} \add{#1}{\cOrange} \\[3pt] \item{练习情况}{#2} \add{#2}{\cGreen} \\[3pt] \item{社区贡献}{#3} \add{#3}{\cGreen} \\[3pt] \item{比赛情况}{#4} \add{#4}{\cYellow} \\[3pt] \item{获得成就}{#5} \add{#5}{\cRed} \\[3pt] \color{\colorOfName}\textbf{总估值:\kern{10pt}#6} \end{cases} } \\ } \main{100}{61}{25}{0}{0}{186} 基础信用:100练习情况:61社区贡献:25比赛情况:0获得成就:0总估值:186050100+++++
这是源码


$\def{\cGreen}{#52C41A} \def{\cOrange}{#F39C11} \def{\cYellow}{#FADB14}
 \def{\cRed}{#E74C3C} \def{\colorOfLine}{#A9A9A9} \def{\colorOfDivide}
 {#000000} \def{\colorOfName}{#000000} \def{\colorOfBox}{#000000}
  \def{\colorOfContent}{#000000} \newcommand{\item}[2]
 {\color{\colorOfName}\textbf{#1:}\text{#2} & } \newcommand{\add}[2]{
  \fcolorbox{\colorOfBox}{#2}{\normalsize\vphantom{+}\kern{#1 mm}} } 
  \newcommand{\main}[6]{ \boxed{ \color{white}\begin{cases} 
  &\color{\colorOfLine}\kern{4pt}\begin{vmatrix}\raisebox{90pt}
  {}\kern{48.56mm}\end{vmatrix}\kern{-5.5pt}\begin{vmatrix}\raisebox{90pt}
  {}\kern{48.56mm}\end{vmatrix} \\[-108pt] 
  &\color{\colorOfDivide}\scriptsize\kern{4 pt}\text{0}\kern{48.2 
  mm}\text{50}\kern{47 mm}\text{100} \\[3pt] \item{基础信用}{#1} \add{#1}
  {\cOrange} \\[3pt] \item{练习情况}{#2} \add{#2}{\cGreen} \\[3pt] \item{社区
  贡献}{#3} \add{#3}{\cGreen} \\[3pt] \item{比赛情况}{#4} \add{#4}{\cYellow} 
  \\[3pt] \item{获得成就}{#5} \add{#5}{\cRed} \\[3pt] 
  \color{\colorOfName}\textbf{总估值:\kern{10pt}#6} \end{cases} } \\ } 
  \main{100}{61}{25}{0}{0}{186}$
  

把上面的代码放到MarkDown编辑器里就会显示出柱状图啦
需要修改颜色或者数值就找空填就好啦

MarkDown编辑器还是很好玩的!运用得当可以做出漂亮的博客!

注:如果您通过本文,有(qi)用(guai)的知识增加了,请您点个赞再离开,如果不嫌弃的话,点个关注再走吧,日更博主每天在线答疑 ! 当然,也非常欢迎您能在讨论区指出此文的不足处,作者会及时对文章加以修正 !如果有任何问题,欢迎评论,非常乐意为您解答!( •̀ ω •́ )✧

全部评论

相关推荐

不愿透露姓名的神秘牛友
昨天 14:46
和女友两个人马上毕业,现在我在鹅实习995,周六日偶尔也去北京;她在北京金融007,经常忙到后半夜,周末也没啥休息机会两个人现在都不咋聊天了,一句话隔半小时甚至半天才回。&nbsp;她是个很优秀的妹子,工作也很努力,是值得学习一辈子的人。我在努力工作求转正,即便不行至少赚到了一段不错的实习经历。已经异地了半年,接下来可能还会持续是这个状态。我们都算是对方重要的人,只是感觉看上去不是很有未来的样子。希望牛友们给点的鼓励
梦旅奇缘:很难。异地首先就已经很难了,加上妹子是金融行业,忙碌高压,对情感需求很高,而且见惯纸醉金迷,你的很多优势在她那里可能就不算什么了。这种情况下,在她们那里遇到一个能及时照顾她的人,即使那人可能很多条件不如你,你也有可能被分手。 说白了,两个卷王就不太适合在一起。因为卷王最大的优势,在另一个卷王那里就不算优势了。
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
昨天 14:35
点赞 评论 收藏
分享
05-24 14:12
门头沟学院 Java
点赞 评论 收藏
分享
05-30 12:03
山西大学 C++
offer来了我跪着接:不是骗子,等到测评那一步就知道为啥这么高工资了
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
昨天 17:02
鼠鼠深知pdd的强度很大,但是现在没有大厂offer,只有一些不知名小厂我是拒绝等秋招呢,还是接下?求大家帮忙判断一下!
水中水之下水道的鼠鼠:接了再说,不图转正的话混个实习经历也不错
投递拼多多集团-PDD等公司10个岗位 >
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务