History-Today 懒人版历史上的今天,只需添加上“id”就能使用
建议使用 Chrome 浏览器,体验最佳效果。
玩html的朋友们都知道,感觉自己的html总少些什么,现在给大家做了一个这个小玩意儿,可以直接嵌入在html里
1 简介
- 支持自定义样式css
- 只需要在你的<p>或<span>里加上id就可以了
- 无需占用本地空间,联网搜索
2 使用方法
用法:在你的<p>
或<span>
中加上id=”tohis”
示例:
<p id="tohis"></p>
<script src="https://cdn.jsdelivr.net/gh/softosdev/history-today/tohis.js "></script>
<script src="https://softosdev.github.io/history-today/tohis.js "></script>
(不推荐)
<script src="scripts/tohis.js"></script>
完整代码:
1 | <!DOCTYPE html> |