內容簡介
這個「Browser Specific CSS」外掛是一個工具,讓開發人員可以直接在樣式表中針對不同的瀏覽器進行定位。這個外掛會在網頁的 head 中加入短 JavaScript,讓你可以使用瀏覽器特定的 CSS 選擇器。例如,要在樣式表中定位 Internet Explorer 7,只需要使用「.ie7」選擇器定義樣式即可。此外,它支援每一個主要的瀏覽器,包括定位 Mac、PC 和 Linux 等操作系統。
這個外掛使用了由 Rafael Lima 撰寫的 JavaScript,沒有對原始程式碼進行更動,所有的功勞都應歸給他。謝謝你,Rafael!
更新日誌:
版本 0.3
– 更新相容於 WordPress 2.9。
版本 0.2
– 修正自述檔案。
版本 0.1
– 第一個版本的功能包括開啟和關閉外掛,以及指定單獨的樣式表。
外掛標籤
開發者團隊
原文外掛簡介
The Browser Specific CSS plugin is a tool that allows developers to easily target different browsers straight from the stylesheet. Browser Specific CSS adds a short javascript to the head of your page that enables you to use browser specific css selectors. For example, targeting Internet Explorer 7 from your stylesheet is just a matter of defining styles with a “.ie7” selector. Every major browser is supported including code for targeting Macs, PCs, and Linux operating systems.
This plugin uses the javascript written by Rafael Lima. No changes have been made to his code, and all the credit goes to him. Thanks, Rafael!
Changelog:
Version 0.3
– Update for compatibility with WordPress 2.9
Version 0.2
– Corrected readme file.
Version 0.1
– Features of the first version of this plugin include the ability to turn the plugin on and off and to specify a separate stylesheet.
