We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
感谢作者,自己的优化点大家参考。
图片预览
wemarkTabImage(e){ wx.previewImage({ current: e.currentTarget.dataset.src, // 当前显示图片的http链接 urls: [e.currentTarget.dataset.src] // 需要预览的图片http链接列表 }) }
代码背景颜色
一级标题
.wemark_block_h1{ font-size:50rpx; /**不喜欢居中,把居中去掉**/ /**text-align: center;**/ margin-bottom:1em; margin-top:40px; font-weight: 500; // 为伪元素而新增的position属性 position: relative; } .wemark_block_h1:after{ content: ''; /*CSS伪类用法*/ position: absolute; /*定位背景横线的位置*/ top: 130%; background: #e0e0e0; /*宽和高做出来的背景横线*/ width: 100%; height: 1px; left:0px; }
效果: 代码颜色:
一级目录:
图片预览:
The text was updated successfully, but these errors were encountered:
字体高亮,微调了颜色,左右间距,圆角
.wemark_inline_code{ background:#edebed; padding:3px 5px; word-wrap:break-word; border-radius:5px; margin-left:5px; margin-right:5px; }
效果:
Sorry, something went wrong.
黑色背景要好看些,借鉴了
From WeChat Mini Programe: GitHub Trending Hub
我想问一下能发一下你的demo吗 我的为什么没有高亮而且图片也没有显示
You should append data-src="{{renderInline.src}}" into the Image element in wemark.html
data-src="{{renderInline.src}}"
wemark.html
No branches or pull requests
感谢作者,自己的优化点大家参考。
效果:
代码颜色:
一级目录:
图片预览:
The text was updated successfully, but these errors were encountered: