
內容簡介
這個外掛會在 HTML 標籤中加入 CSS selectors。
有時候你需要一些自定義的 CSS,發現 DOM 中的某些元素沒有任何選擇器。
啟用此外掛後,你再也不需要困擾這個問題。每個 DOM 元素都會有一個以 css-sel- 開頭的類名。
沒有任何選項,只需啟用該插件即可。
要檢查插件是否有效,在前端右鍵單擊滑鼠,單擊 "檢查"(通常是 F12)。那麼你就不會在 DOM 中看到任何沒有類名的元素。
唯一可能仍缺少 CSS 類的元素是通過 JavaScript 動態添加的元素。在這種情況下,插件無法進行任何操作,因為它只在服務器端在發送頁面到瀏覽器之前工作。
它不會增加 HTTP 請求,也不會對數據庫進行查詢。
外掛標籤
開發者團隊
原文外掛簡介
It adds CSS selectors in the HTML where there are not.
Sometimes you need some custom CSS and you realise a specific element of the DOM is without any selector.
After activating this plugin you will not have anymore this problem. Every element of the DOM will have a class name that begins with css-sel-.
There are no options, just activate the plugin.
To see if it works, in the frontend right-click with your mouse and click on “Inspect” (usually F12). Then you should not see any more DOM elements without any class.
The only elements that may still miss a CSS class are those ones that are added dynamically through JavaScript. In this last case the plugin can’t do anything, because it works only on the server before sending the page to the browser.
It adds no HTTP requests, and no queries to the database.
Help
If you need help open a thread on the support forum of this plugin.
Please, before posting enable the debugging in wp-config.php. Need a step-by-step guide? Read this detailed tutorial on how to enable debugging in WordPress to learn more.
