版权属于:
我爱源代码|5iydm
本文链接:
https://www.5iydm.com/archives/niu-hongdenglong-js.html (转载时请注明本文出处及文章链接)
作品采用:
1.效果如下图所示
2.自定义内容
自定义灯笼字体
/* 修改灯笼的字体 */
.d-box .d1::after{
content: '牛年吉祥';}
.d-box1 .d1::after{
content: '万事顺利';
}
自定义灯笼大小,位置
.d-box{
position: fixed;
width: 330px;
/* 自定义灯笼的位置 */
right: 0;
top: 0;
/* 自定义灯笼大小 */
transform: scale(0.8);
}
.d-box1{
position: fixed;
width: 330px;
/* 自定义灯笼的位置 */
left: 0;
top: 0;
/* 自定义灯笼大小 */
transform: scale(0.8);
}
3.使用方法
将下面的链接复制到页面即可使用
在header标签里面加入<div class="dengl"></div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Rr210/Lantern@3.3/dl.css">
<script src="https://cdn.jsdelivr.net/gh/Rr210/Lantern@3.3/dl.js"></script>
我爱源代码|5iydm
https://www.5iydm.com/archives/niu-hongdenglong-js.html (转载时请注明本文出处及文章链接)
评论 (0)