[WordPress] 外掛分享: Sticky on Scroll

首頁外掛目錄 › Sticky on Scroll
WordPress 外掛 Sticky on Scroll 的封面圖片
90+
安裝啟用
★★★★★
5/5 分(1 則評價)
627 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.2+ v2.0.1 上架:2017-09-05

內容簡介

WordPress外掛「Sticky on Scroll」能夠讓任何元素在接觸到畫面頂部時固定在那裡,通常使用於讓導覽列固定於畫面頂部。

若要讓其他元素也能完美運作,可能需要加入一些HTML/CSS,但請務必選擇大小合適的元素作為「sticky」目標。

建議為要固定的元素新增一個獨特的class/ID。若有多個元素需要固定,建議使用class以獲得最佳效果。

若要固定多個元素,只需用逗號(如#section1,#section2,.header)將元素的ID或class分隔開即可。你也可以使用任何HTML元素作為sticky目標,但仍建議使用ID/class。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Sticky on Scroll」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The Sticky on Scroll plugin for wordpress allows to make any element sticky as soon as the element hits the top of the page. It is commonly used to keep navigation menus at the top of page.
You might have to add little bit of HTML/CSS to work this plugin perfectly for other elements except navigation menu. Make sure you do not select too large elements as sticky.
Always try to add a unique element class/ID for the element you want to set as sticky. For multiple elements you can use class for best results.
For multiple elements you can easily add element ID or classes separated by comma (For eg. #section1, #section2, .header). You can also use any HTML elements as sticky. However adding using ID/class is preferable.

延伸相關外掛

文章
Filter
Mastodon