md
md copied to clipboard
样式丢失问题
Hi
我用 html
和 css
写了一个 Card
,代码如下 👇
<div style="margin: auto; width:250px; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); text-align: center; border-radius: 10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); box-shadow: 0 0 20px #a812ff;">
<img style="width:20%; height:20%;" src="https://gitee.com/jeremywuiot/img-res-all/raw/master/src/iie_shop/tack_purple_128x128.png"/>
<img src="https://gitee.com/jeremywuiot/img-res-all/raw/master/src/iie_shop/wechat_qr_code_2021_02.png" style="width:100%"/>
<img style="width:15%; height:15%; position: relative; top: 0px;left: 0px;" src="https://gitee.com/jeremywuiot/img-res-all/raw/master/src/iie_shop/tada.gif" />
<div style="padding: 1px;">
<p style="font-size:12px; color: #a812ff">长按关注公众号 ⌈全栈民工⌋ 🎉</p>
<p style="font-size:12px; color: #a812ff">原创技术文章第一时间推送 🙌</p>
</div>
</div>
在 md 中显示正常,如下 👇
但是复制到公众号编辑器里,显示就比较奇怪了,看起来样式丢失了 🐛
环境如下:
-
OS
-Windows 11 Professional
21H2
-
Browser
-Microsoft Edge
96.0.1054.62
Thanks ☕
@JeremyWu917 两个问题
- 微信图文不支持 div 标签(微信官方限制,一般是用 section 标签代替)
- 编辑器对自定义样式的支持暂时还比较有限(待优化)
@yanglbme 感谢回复! 刚刚接触公众号运营,见笑了😅 我来看看能否优化一下,谢谢🙏
欢迎提交 pull request