dev-master
9999999-dev https://github.com/crucifyer/css-browser-selector/CSS Browser Selector - no need css hack. html tag adding your browser info
MIT
The Requires
- php >=5.2.4
by Song Hyo-Jin
css css browser selector
Wallogit.com
2017 © Pedro Peláez
CSS Browser Selector - no need css hack. html tag adding your browser info
no need css hack. html tag adding your browser info fork this project from : http://rafael.adm.br/css_browser_selector/, (*1)
<html class="ie ie6 win js">
<html class="ie ie10 ie9m win js">
<html class="chrome edge win js"> <html class="ie ie12 ie9m edge win js" oldedge>
<html class="webkit safari mobile ios iphone js">
<!-- android default internet browser --> <html class="webkit chrome mobile chromedef android tablet retina ratio2 js"> <!-- google play chrome browser --> <html class="webkit mobile chrome android tablet retina ratio2 js">
.myText { margin-bottom:2px; }
.ie6 .myText { margin-bottom:1px; }
.opera .myText { margin-top:-1px; }
$className = css_browser_selector::getClassName($_SERVER['HTTP_USER_AGENT']);
.ie67, .ie678, .ie9m (IE9 and more) .ff4 ~ .ff11 and more
width > height ? landscape : portrait
```css .portrait .landscape .smartnarrow ( <= 360 ) .smartwide ( <= 640 ) .tabletnarrow ( <= 768 ) .tabletwide ( <= 1024 ) .pc ( > 1024 ), (*2)
example ```css #photo { float:left; } .iphone.portrait #photo { clear:both; } .smartwide #leftMenu, .tabletwide #leftMenu { float:left; width:120px; } .tabletwide #rightMenu { float:right; width:120px; }
body {
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
text-size-adjust: none;
}
// window.CSSBS_* defined.
if(window.CSSBS_ie) alert('MSIE');
if(window.CSSBS_ie6) alert('MSIE 6');
if MSIE define $.browser = {msie:1,version:msie version};
other browser $.browser = {};
compressed - https://raw.githubusercontent.com/crucifyer/css-browser-selector/master/css_browser_selector.min.js, (*3)
source - https://raw.githubusercontent.com/crucifyer/css-browser-selector/master/css_browser_selector.js - https://raw.githubusercontent.com/crucifyer/css-browser-selector/master/css_browser_selector.class.php, (*4)
test page - https://crucifyer.github.io/css-browser-selector/, (*5)
CSS Browser Selector - no need css hack. html tag adding your browser info
MIT
css css browser selector