內容簡介
可輕鬆在模板中包含特定瀏覽器的樣式表,或在 CSS 中選擇特定瀏覽器和版本的類別。
條件式瀏覽器樣式表會在主題的 style.css 之後添加,從而允許它們覆蓋先前的規則 - 您只需要添加應更改的 CSS 規則即可。
此外掛使用最新的 WordPress 頂層功能,清理所有輸入數據,並完全國際化。
如需功能請求和錯誤報告,請使用 Q Support 網站。
請不要使用 WordPress.org 的討論區報告錯誤,因為我們不再監視或回答那裡的問題。
功能
檢查並添加特定瀏覽器和版本的樣式表 - 例如“browsers-windows-firefox.css”。
向所有頁面添加特定瀏覽器和版本的 body 類別 - 例如 body.browsers-msie-10。
包括 Mobile Detect 類別並添加移動和觸摸的 body 類別。
添加文章類型 body 類別,例如:“posttype-page”。
在模板文件的 HTML 腳注中插入有用的 HTML 註釋,告訴您可以使用哪些 CSS 文件以及找到了哪些 CSS 文件。
外掛標籤
開發者團隊
② 後台搜尋「Conditional Stylesheets and Body Classes」→ 直接安裝(推薦)
原文外掛簡介
Easily include browser specific stylesheets in templates or select browser and version specific classes in CSS.
Conditional browser stylesheets are added after the main theme style.css allowing them to overrule previous rules – you only need to add the CSS rules that should change.
This plugin uses up-to-date WordPress top level functions, sanitizes all input data and is fully internationalized.
For feature request and bug reports, please use the Q Support Website.
Please do not use the WordPress.org forum to report bugs, as we no longer monitor or respond to questions there.
Features
Checks for and adds browser and version specific stylesheets – such as “browsers-windows-firefox.css”.
Add browser and version specific body classes to all pages – such as body.browsers-msie-10
Includes the Mobile Detect class and adds mobile & touch body classes.
Adds a post type body class, for example: “posttype-page”.
Inserts handy HTML comments in the HTML footer of template files to tell you which CSS files could be used and which were found.
