sunseekers.github.io icon indicating copy to clipboard operation
sunseekers.github.io copied to clipboard

关注原生标签和属性,你会发现很多意想不到的事情 — sunseekers

Open sunseekers opened this issue 4 years ago • 3 comments

https://sunseekers.github.io/2021/03/04/HTMLAll/

背景有一天CoCo问我,你们阅文公众号文章是怎么产出的,我的回答是基于业务中的问题,讨论学习

sunseekers avatar Mar 24 '21 09:03 sunseekers

文章中的外链,尽量不要用 markdown 这个[]()格式,原因在于,它不是新开标签页打开的。可以选择使用 a 标签。我暂时是这样操作的,后续如果有好的方式再告诉你。

我在编写博客时,是在 vscode 中写的文章,因此,我使用了 vscode 的代码片段功能,这样可以便捷的使用 a 标签。同时也不影响用户在阅读博客时,点击外链新开标签页。

bran-nie avatar Mar 25 '21 06:03 bran-nie

但是,GitHub 把 target="_blank" 屏蔽了。。评论也是使用 GitHub 的 Issue,因此,评论里面的 a 标签不支持新开标签页了。

bran-nie avatar Mar 25 '21 06:03 bran-nie

但是,GitHub 把 target="_blank" 屏蔽了。。评论也是使用 GitHub 的 Issue,因此,评论里面的 a 标签不支持新开标签页了。

感谢提醒,下次我写都换成a标签,开心

sunseekers avatar Apr 17 '21 12:04 sunseekers