Bilicontributors
阅读
2025-01-19更新
最新编辑:啃泥丝
阅读:
更新日期:2025-01-19
最新编辑:啃泥丝
通过<bilicontributors>394339</bilicontributors>,可以插入一个名片,实现关注和跳转主页的操作。
效果如下:
然而默认样式是纯白,这在很多百科的背景上显示的很突兀。
添加以下 css,可以稍作优化:
{{#css: .user-follow-wrap .user-item-detail { background-color: #背景颜色 !important; padding: 5 !important;} .user-follow-wrap { border: 0 !important;} .user-follow-wrap .user-item-detail .detail-des .des-name { color: #用户昵称颜色 !important;} .user-follow-wrap .user-item-detail .detail-follow-normal { background: #关注按钮颜色 !important; border: 0 !important;} .user-follow-wrap .user-item-detail .detail-follow-active { display: none;} .user-follow-wrap .user-item-detail .detail-pic>div { width: 40; height: 40;} .user-follow-wrap .user-item-detail .detail-pic { height: 40px;} }}
它可以
- 更改颜色
- 缩小名片高度
- 只显示关注按钮,隐藏取关按钮
颜色填什么?
- 在#后填6位16进制颜色代码,如 #ffffff
如何知道页面的背景颜色?
- 按 F12 检查页面
- 按快捷键 ctrl shift c 在页面中选择一个元素检查
- 参考你现在的背景颜色,修改上面 css
挑选按钮颜色
如果你不确定选什么好,这个网站可以给你参考