weekdaycare / weekdaycare.github.io

星语日点灯
https://weekdaycare.cn
1 stars 1 forks source link

淦,做核酸时候下雨了 #21

Open weekdaycare opened 2 years ago

weekdaycare commented 2 years ago

没带伞˚‧º·(˚ ˃̣̣̥⌓˂̣̣̥ )‧º·˚

Achuan-2 commented 2 years ago

大佬,想问问怎么控制近期动态只展示一条的

weekdaycare commented 2 years ago

@Achuan-2 api后面加上?per_page=1就可以啦,比如https://api.github.com/repos/weekdaycare/weekdaycare.github.io/issues?per_page=1,更多的可以参考issue官方文档

Achuan-2 commented 2 years ago

哇,感谢!

Achuan-2 commented 2 years ago

还有一个问题,还想打扰大佬问问,近期动态这里为啥我有滚动条呢,而你的博客没有 Snipaste_2022-10-29_10-37-28 Snipaste_2022-10-29_10-39-19

weekdaycare commented 2 years ago

@Achuan-2 我的博客本来也是有的,问了大佬说是浏览器兼容的问题,你换个设备访问应该就不会出现滚动条,我这里没有滚动条是因为我手动引用了一个滚动条css文件scrollbar.css,你可以看到我网站的滚动条都不是默认的

weekdaycare commented 2 years ago

@Achuan-2

scrollbar.css ```css /* 滚动条 */ ::-webkit-scrollbar { width: 10px; height: 8px; } ::-webkit-scrollbar-track { background-color: rgba(200,155,155,0); //最后一位数置0 border-radius: 2em; } ::-webkit-scrollbar-thumb { background-color: #ffc0cb !important; background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.4) 75%, transparent 75%, transparent ) !important; border-radius: 2em; } ::-webkit-scrollbar-corner { background-color: transparent; } [data-theme="dark"] ::-webkit-scrollbar-thumb { background-color: #1f1f1f !important; } ```
Achuan-2 commented 2 years ago

感谢,copy了你的代码就可以啦!

weekdaycare commented 2 years ago

@Achuan-2 可以改改颜色🥳

Achuan-2 commented 2 years ago

hh,我还是改朴素点了