<div class="weixin-tip">
<p>
<img src="img/live_weixin.png" alt="微信打开"/>
</p>
</div>
<script type="text/javascript">
$(window).on("load",function(){
var winHeight = $(window).height();
function is_weixin() {
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {
return true;
} else {
return false;
}
}
var isWeixin = is_weixin();
if(isWeixin){
$(".weixin-tip").css("height",winHeight);
$(".weixin-tip").show();
} var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
//alert('是否是Android:'+isAndroid);
//alert('是否是iOS:'+isiOS);
if(isAndroid){
$("#box2").clone().attr("id","box3").insertBefore($('#box1'));
$("#box2").hide();
$("#box3").css("margin-bottom","10px");
}
})
</script>
    a{text-decoration: none;}
img{max-width: 100%; height: auto;}
.weixin-tip{display: none; position: fixed; left:; top:; bottom:; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); height: 100%; width: 100%; z-index:;}
.weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}

最新文章

  1. Python 爬虫1——爬虫简述
  2. 并行编程多线程之Parallel
  3. Linux系统下安装rz/sz命令及使用说明
  4. 取地址符:&amp;
  5. nginx处理静态资源的配置
  6. Android Canvas使用drawBitmap绘制图片
  7. python摘抄
  8. NSString 用法大全。
  9. Spring4新特性
  10. Python学习第四章
  11. 8-Python3从入门到实战—基础之数据类型(集合-Sets)
  12. jQuery控制元素显示、隐藏、切换、滑动的方法
  13. 乘风破浪:LeetCode真题_040_Combination Sum II
  14. http 返回码 405 解决方案之一
  15. 【安全开发】C/C++安全编码规范
  16. 通过脚本获取form表单的数值而不是submit
  17. Cocoa pod导入第三方框架遇到的那点事儿
  18. PHP urlencode
  19. 使用Lazy对构造进行重构后比较
  20. bzoj 1064 图论

热门文章

  1. NOIP模拟赛 虫洞
  2. PHP计算两个日期相差的年月日时分秒
  3. Linux-CentOS6.9启动流程排错
  4. 教程笔记《JavaScript深入浅出》
  5. GoF23种设计模式之行为型模式之策略模式
  6. Django之FileField字段
  7. Linux学习-RPM 软件管理程序: rpm
  8. UVa 11695 树的直径 Flight Planning
  9. 【Alpha】Scrum Meeting 5-end
  10. 请求报文&amp;响应报文