이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

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.

기능

  • 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.

설치

워드 프레스를 통해 자동 설치 :

  1. 당신의 워드 프레스 관리자 영역에서 ‘추가 새로운’플러그인 화면으로 이동
  2. Search for ‘Browsers’
  3. ‘지금 설치’를 클릭하고 플러그인을 활성화

FTP를 통해 수동 설치 :

  1. Upload the browsers directory to the /wp-content/plugins/ directory
  2. 당신의 워드 프레스 관리자 영역에서 ‘플러그인’화면을 통해 플러그인을 활성화

대신 FTP의, 워드 프레스를 통해 플러그인을 업로드하려면 :

  1. 당신의 워드 프레스 관리자 영역에서 ‘추가 새로운’플러그인 화면 ( ‘업로드’탭 참조)에 다운로드 한 zip 파일을 업로드하고 활성화합니다.

FAQ

How do I add and access browser specirfic stylesheets?

To add extra stylesheets, create a new CSS file and upload it to the root of your active theme or in the directory THEME/library/css/ – you can include a mixture of 3 values:

  • Operating System name ( windows, mac, linux )
  • Browser Name ( firefox, safari, chrome, msie )
  • Browser Version ( a specific whole version number )

The plugin then looks for a matching CSS file in the root of the active theme or in the directory THEME/library/css/ using a combinations of these 3 values ( in these example we’ll use IE 10 on windows ):

  • browsers-msie.css
  • browsers-msie-10.css
  • browsers-windows-msie.css
How do I select browser specific classes in my CSS files?

The Browsers plugin adds a collection of extra browser and operating system specific classes to the HTML <body> tag of all front-end pages of the current active theme.

The best way to find out what classes are added is to use a source code inspector like Google Chrome’s Inspector to view the <body> tag.

You can then use these new classes to select HTML elements in the following way ( again using IE 10 as an example ):

~~ style.css ~~

body.browsers-msie-10 {
background-color: red;
}

~~~~~~~~~~~~

후기

모든 2 평가 읽기

기여자 & 개발자

“Conditional Stylesheets and Body Classes”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Conditional Stylesheets and Body Classes”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

0.4.7

  • readme update

0.4.6

  • WP 4.4.1 Testing

0.4.5

  • WP 4.0 Testing

0.4.4

  • 3.9.1 Testing

0.4.3

  • 3.8.1 Testing
  • Forum link

0.4.1

  • Name change

0.4.0

  • Readyness for Q Theme Framework integration

0.3.4

  • Readme corrections

0.3.1

  • Correction to stylesheet location function

0.3

  • Body tags and CSS file names homogenized

0.2

  • First public release.