[WordPress] 外掛分享: Text Snipper

首頁外掛目錄 › Text Snipper
WordPress 外掛 Text Snipper 的封面圖片
40+
安裝啟用
★★★☆☆
3/5 分(1 則評價)
3377 天前
最後更新
問題解決
v1.0 上架:2016-12-10

內容簡介

此外掛讓您在設定頁面中指定一個 CSS 類別,然後尋找所有包含此類別的元素,並將其文本修剪,使其不超出容器的高度。這適用於多行文本的垂直修剪,即使元素有直接的子元素也有效。

使用方法

一旦您安裝並啟用此外掛,管理介面中會有一個新的選項卡。前往此頁面,輸入您在 HTML 中使用的 CSS 類別的名稱,以指定應修剪的元素。儲存設定後,就完成了!

許可證
版權所有 2016 年 Jordan Carter

本程式是自由軟體;您可以依照 GNU 通用公眾授權條款的規定,遵照著授權書的條款,重新散佈及修改本程式。

本程式是依「現狀」基礎提供,不負擔任何明示或隱含之擔保責任,包括但不限於對於特定用途之適用性做保證。詳細資料請參閱 GNU 通用公眾授權條款。

您應已收到 GNU 通用公眾授權條款的複本;如未然,請洽詢自由軟體基金會,地址為 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

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

原文外掛簡介

This plugin allows you to specify in the settings page a CSS class, and then looks for any elements that contain it and trims the text down so that it does not overflow its container’s height. This is for vertical trimming of multi-line text, and also works if the element has direct children.
HOW TO USE
Once you install and activate the plugin, there will be a new tab for it under the “settings” admin menu. Go to this page, and enter the name of the CSS class you are using in your HTML to specifiy which elements should be truncated. Click save, and that’s it!
License
Copyright 2016 Jordan Carter

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

延伸相關外掛

文章
Filter
Mastodon