侧栏吸顶

v1.0.0 sidebar_sticky 官方出品 Community submission

PC 端左/右侧栏在页面滚动时吸顶跟随。纯 CSS 实现:零 JS、零数据库、零后台配置,靠插件启用/禁用作为唯一开关。

Author FlintHub Verified developer
Downloads7
Min core version1.1.2
Updated2026-10-20 10:01
Log in to download Log in to download the package directly — for servers that cannot install plugins online.
After downloading, upload the zip in your own site admin: Plugin Store → Upload & Install. If your server has outbound access, prefer the online install — it can auto-update.

Screenshots 0

No screenshots yet.

Changelog

首个版本。

  • PC 端左右侧栏吸顶跟随:左栏 ≥769px、右栏 ≥1025px,断点与核心侧栏显示规则严格对齐。
  • 纯 CSS 实现,仅 8 行声明;无 JS、无数据库、无后台配置项。
  • 吸顶位置与核心 .mn-body 的 20px 上内边距对齐,滚动时零位移。
  • 侧栏内容超过视口高度时允许底部裁切,刻意不引入内部滚动条。
  • 启用/禁用即时生效:激活与禁用时自动失效游客页面缓存。

Files 5 7.4 KB

  • plugins 5 files · 7.4 KB
    • sidebar_sticky 5 files · 7.4 KB
      • assets 1 files · 1019 B
        • style.css 1019 B
      • hook 1 files · 399 B
        • layout_head_end.php 399 B
      • Plugin.php 817 B
      • plugin.json 1008 B
      • 说明.md 4.2 KB

Discussion 0

No discussion yet. Be the first to share your thoughts.
Please sign in to join the discussion.