https://github.com/ryanuo/lantern
给你的博客顶部添加灯笼特效年味
https://github.com/ryanuo/lantern
Last synced: 11 months ago
JSON representation
给你的博客顶部添加灯笼特效年味
- Host: GitHub
- URL: https://github.com/ryanuo/lantern
- Owner: ryanuo
- License: gpl-2.0
- Created: 2021-02-03T04:33:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-13T09:37:20.000Z (about 5 years ago)
- Last Synced: 2024-11-24T20:47:17.171Z (over 1 year ago)
- Language: CSS
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 1.查看效果

## 2.自定义内容
1. 可自定义灯笼`字体`
```css
/* 修改灯笼的字体 */
.d-box .d1::after{
content: '牛年吉祥';}
.d-box1 .d1::after{
content: '万事顺利';
}
```
2. 可自定义灯笼`大小,位置`
```css
.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. 适配移动端,可设置`隐藏`,或者显示一个/调节`灯笼的大小`,`默认一个`
4. 可自定义灯笼的`阴影颜色,大小`
## 3.使用方法
1. 直接引用`index.html`中的body里面的内容
2. 加入`dl.css`,新增`js`
3. 第一个文件夹内的css是未使用css3`box-sizing:border-box`(不适配,不用看这个)
4. 将下面的链接复制到页面即可使用
- 在`header`标签里面加入`
`
```html
```
## 4. 博客地址
- 原创[Harryの心阁](https://u.mr90.top)
- 转载请标明出处,尊重原创作者 https://u.mr90.top/posts/8914/