markdown-css

容器的类为epm-md-print,可自行修改
.epm-md-print {
   p,
   ol,
   ul,
   pre,
   h1,
   h2,
   h3,
   h4,
   h5,
   h6,
   table,
   blockquote {
     margin-bottom1em
  }
   &  blockquote> :first-child {
     margin-top0;
  }

   &  blockquote> :last-child {
     margin-bottom0;
  }
   h1 {
     font-size32px;
     font-weight600;
  }

   h2 {
     font-size24px;
     font-weight600;
  }

   h3 {
     font-size20px;
     font-weight600;
  }

   h4 {
     font-size16px;
     font-weight600;
  }

   h5 {
     font-size14px;
     font-weight600;
  }

   h6 {
     font-size12px;
     font-weight600;
  }
   img {
     max-width100%;
     widthinherit;
     background-color#fff;
  }
   pre {
     border-width0;
     padding10px  15px;
     backgroundrgba( 102, 128, 153, .1);
     line-height26px;
     code {
       backgroundnone
    }
  }
   a {
     color#0366d6;
     text-decorationnone;
  }
   a:hover {
     colorinherit;
     cursorpointer;
  }
   code {
     padding4px;
     font-size80%;
     colorinherit;
     backgroundrgba( 102, 128, 153, .1);
     word-wrapbreak-word;
  }
   blockquote {
     padding10px  15px;
     color#777;
     border-left4px  solid  #999;
     backgroundrgba( 102, 128, 153, .1);
  }
   ol {
       list-style-typedecimal;
  }
   ul {
       list-style-typedisc;
  }
   ol,
   ul {
     padding-left30px;
  }
   li> p {
     margin-top16px;
  }
   li+ li {
     margin-top0.25em;
  }
   table {
     displayblock;
     width100%;
     overflowauto;
     border-spacing0;
     border-collapsecollapse;
  }

   table  th {
     font-weight600;
  }

   table  th,
   table  td {
     padding6px  13px;
     border1px  solid  #dfe2e5;
  }

   table  tr {
     background-color#fff;
     border-top1px  solid  #c6cbd1;
  }

   table  tr:nth-child( 2n) {
     background-color#f6f8fa;
  }
   dl {
     padding0;
  }

   dl  dt {
     padding0;
     margin-top16px;
     font-size1em;
     font-styleitalic;
     font-weight600;
  }

   dl  dd {
     padding0  16px;
     margin-bottom16px;
  }
   hr {
     border0;
     border-bottom1px  solid  #ddd;
     padding0;
     margin24px  0;
  }
   &>* :first-child {
     margin-top0  !important;
  }

   &>* :last-child {
     margin-bottom0  !important;
  }
}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

_破败

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值