Quantcast
Channel: 簡睿隨筆
Viewing all articles
Browse latest Browse all 897

[WordPress外掛] 利用TablePress強化HTML表格控制

$
0
0

TablePress是一個WordPress的外掛,用來將文章內的HTML表格增強諸多方便的操作控制,例如內容排序、文字搜尋、分頁等等,以下即為使用TablePress以其Smartcode〔table id=win8_shortcuts /〕呈現的樣貌;眼尖的網友們可以看出TablePress使用的是jQuery DataTables外掛:

Shortcut
Description
Alt+DSelect address bar (Explorer)
Alt+EnterProperties
Alt+F4Close active item or app
Alt+Left-ArrowPrevious folder (Explorer)
Alt+SpacebarShortcut menu
Alt+TabSwitch between apps
Alt+Up-ArrowGo up one level (Explorer)
Ctrl+ASelect all
Ctrl+Alt+DDocked mode (Magnifier)
Ctrl+Alt+IInvert colors (Magnifier)
Ctrl+Alt+LLens mode (Magnifier)
Ctrl+Alt+TabSwitch between apps using arrow keys
Ctrl+CCopy
Ctrl+Down-ArrowNext paragraph
Ctrl+ESelect Search box (Explorer)
Ctrl+EscStart screen
Ctrl+F4Close active document
Ctrl+InsertCopy
Ctrl+Left-ArrowPrevious word
Ctrl+NNew window (Explorer)
Ctrl+RRefresh
Ctrl+Right-ArrowNext word
Ctrl+Shift+Down-ArrowSelect a block of text
Ctrl+Shift+EscTask Manager
Ctrl+Shift+Left-ArrowSelect a block of text
Ctrl+Shift+NNew folder (Explorer)
Ctrl+Shift+Right-ArrowSelect a block of text
Ctrl+Shift+Up-ArrowSelect a block of text
Ctrl+TabCycle through metro app history
Ctrl+Up-ArrowPrevious paragraph
Ctrl+VPaste
Ctrl+WClose current window (Explorer)
Ctrl+XCut
Ctrl+YRedo
Ctrl+ZUndo
DeleteDelete file (Explorer)
EscCancel
F1Display Help (if available)
F2Rename item
F3Search for file or folder
F4Display items in active list
F5Refresh
Left-ArrowOpen previous menu or close submenu
Right-ArrowOpen next menu or open submenu
Shift+InsertPaste
Shift+TabMove backward through options
SpacebarSelect or clear active check box
TabMove forward through options
WinStart screen
Win+,Peek at the desktop
Win+.Snap a metro app to the right (+Shift to snap to the left)
Win+COpen charms
Win+DShow desktop
Win+Down-ArrowRestore/minimize desktop window (+Shift to keep width)
Win+EOpen Windows Explorer
Win+EnterNarrator (+Alt to open Windows Media Center if installed)
Win+EscExit Magnifier
Win+FGo to Files in Search charm (+Ctrl to find computers on a network)
Win+F1Windows Help and Support
Win+GCycle through desktop gadgets
Win+HShare charm
Win+HomeMinimize non-active desktop windows
Win+ISettings charm
Win+JSwitch focus between snapped and larger apps
Win+KDevices charm
Win+LSwitch users (Lock computer if on a domain)
Win+Left-ArrowSnap desktop window to the left (+Shift to move window to left monitor)
Win+MMinimize all windows (desktop)
Win+MinusZoom out (Magnifier)
Win+OLock screen orientation
Win+PProjection options
Win+Page-DownMove Start screen to right monitor
Win+Page-UpMove Start screen to left monitor
Win+PauseSystem Properties
Win+PlusZoom in (Magnifier)
Win+QSearch charm
Win+RRun
Win+Right-ArrowSnap desktop window to the right (+Shift to move window to right monitor)
Win+SpacebarSwitch input language and keyboard layout
Win+TSet focus on taskbar and cycle through running desktop apps
Win+TabCycle through metro app history (use Ctrl to use arrow keys)
Win+UEase of Access Center
Win+Up-ArrowMaximize desktop window (+Shift to keep width)
Win+VCycle through notifications (+Shift to go backward)
Win+WGo to Settings in Search charm
Win+XQuick link power user commands (Opens Windows Mobility Center if present)
Win+ZOpen app bar

TablePress處理表格的方法與眾不同,我們必須將HTML表格透過它的介面建立好,再於文章中以指定id的smartcode來引用,這樣的好處是文章格式會簡潔些,但如果存放表格的資料表有狀況則文章裡就顯示不出表格了。

建立HTML表格

TablePress除了讓我們自行新增表格外,也能用HTML、CSV、JSON等格式匯入或匯出,可以很方便迅速的將已有的表格加到文章裡。但可惜rowspan與colspan等屬性無法處理,有跨行或跨列時必須另行調整。
TablePress 1

表格資料維護

表格內容可以用拖拉的方法來編輯,預設第一列就是標題。
TablePress 2

表格操作

資料內容下方就有常用的表格操作選項,可以很簡單的來維護表格資料。
TablePress 3

雖然我大部份都直接以Markdown PHP-Extra的表格來撰寫表格內容了,但每次要調整比較複雜的HTML時也是稍感麻煩,能直接行、列的方法來操作其實是能節省更多的編輯時間的。推薦網友們試用。

連結資訊

##

您可能也會有興趣的類似文章

The post [WordPress外掛] 利用TablePress強化HTML表格控制 appeared first on 簡睿隨筆.


Viewing all articles
Browse latest Browse all 897

Trending Articles