公告栏添加时钟

页面定制CSS代码

/* 定制公告栏时钟位置 */
#clockdiv {
    /* left, center, right */
    text-align: center;
}

博客侧边栏公告(支持HTML代码)(支持JS代码)

<!-- 添加公告栏时钟 -->
<div id="clockdiv">
    <canvas id="dom" width="120" height="120">时钟canvas</canvas>
</div>
<script type="text/javascript" src="https://files.cnblogs.com/files/shwee/clock.js"></script>
posted @ 2019-01-04 13:13  半晌贪欢  阅读(187)  评论(0编辑  收藏  举报