承接 crucifyer/css-browser-selector 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

crucifyer/css-browser-selector

Composer 安装命令:

composer require crucifyer/css-browser-selector

包简介

CSS Browser Selector - no need css hack. html tag adding your browser info

README 文档

README

Now that IE is a thing of the past, this library is no longer needed.

no need css hack. html tag adding your browser info fork this project from : http://rafael.adm.br/css_browser_selector/

if IE6

<html class="ie ie6 win js">
  • ie6 ie67 ie678 ie6789

if IE10

<html class="ie ie10 ie9m win js">

if EDGE

<html class="chrome edge win js">
<html class="ie ie12 ie9m edge win js" oldedge>

if iPhone Safari

<html class="webkit safari mobile ios iphone js">

if android retina tablet chrome

<!-- 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">

using

.myText { margin-bottom:2px; } 
.ie6 .myText { margin-bottom:1px; }
.opera .myText { margin-top:-1px; }

php version using

$className = css_browser_selector::getClassName($_SERVER['HTTP_USER_AGENT']);

more support types

.ie67, .ie678, .ie9m (IE9 and more)
.ff4 ~ .ff11 and more

if jQuery && mobile support

width > height ? landscape : portrait
.portrait .landscape
.smartnarrow ( <= 360 )
.smartwide ( <= 640 )
.tabletnarrow ( <= 768 )
.tabletwide ( <= 1024 )
.pc ( > 1024 )

example

#photo { float:left; }
.iphone.portrait #photo { clear:both; }
.smartwide #leftMenu, .tabletwide #leftMenu { float:left; width:120px; }
.tabletwide #rightMenu { float:right; width:120px; }

mobile font zoom disable

body {
	-webkit-text-size-adjust: none;
	-moz-text-size-adjust: none;
	-ms-text-size-adjust: none;
	text-size-adjust: none;
}

jquery 1.9 $.browser deprecated.

// 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

source

test page

Now that IE is a thing of the past, this library is no longer needed.

统计信息

  • 总下载量: 22.75k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 34
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 34
  • Watchers: 5
  • Forks: 8
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固