http://www.cnblogs.com/hlyin/

来源:互联网 发布:投资房地产 分析 数据 编辑:程序博客网 时间:2024/04/27 13:57
判断手机还是pc
摘要: if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { window.location.href = "https://www.baidu.com/"; } else { //pc window.location阅读全文
posted @ 2017-11-24 09:13 我是前端QQ942031558 阅读(2) 评论(0) 编辑

 2017年10月24日

屏幕自适应大小
摘要: resize(); $(window,document).resize(function(){ resize(); }); function resize(){ var widths = $(window).width()/$("body").width(); $("body").css({ tra阅读全文
posted @ 2017-10-24 11:16 我是前端QQ942031558 阅读(4) 评论(0) 编辑

 2017年6月28日

css3 light
摘要: .i-project .i-art-wrap .light { cursor: pointer; position: absolute; left: -100%; top: 0; width: 100%; height: 100%; background-image: -webkit-linear-阅读全文
posted @ 2017-06-28 11:25 我是前端QQ942031558 阅读(5) 评论(0) 编辑

 2017年5月8日

banner鼠标交互动画
摘要: //banner鼠标交互动画 $(".layerTransform").on("mousemove", function(e){ var _this = $(this); var x = e.pageX; var y = e.pageY; //console.log(x); var w = _thi阅读全文
posted @ 2017-05-08 09:14 我是前端QQ942031558 阅读(4) 评论(0) 编辑

 2017年4月26日

background 线性渐变
摘要: 原文链接:http://caibaojian.com/css3-background-gradient.html 综上所述,线性渐变的兼容写法如下:· 来源:前端开发博客阅读全文
posted @ 2017-04-26 11:37 我是前端QQ942031558 阅读(13) 评论(0) 编辑

 2017年4月18日

HTML5 input file 打开很慢的问题
摘要: <input type="file" name="file" class="element" accept="image/jpg,image/jpeg,image/png">阅读全文
posted @ 2017-04-18 09:03 我是前端QQ942031558 阅读(6) 评论(0) 编辑

 2017年4月17日

js来回动画
摘要: $(function line_light01(){ $(".line01").animate({"left":"775","opacity":".5"},3500,function(){ $(this).animate({"left":"300","opacity":"1"},0,line_lig阅读全文
posted @ 2017-04-17 11:27 我是前端QQ942031558 阅读(13) 评论(0) 编辑

 2017年4月12日

banner、学习定时器
摘要: $(function(){ var index = 1; var ul_li = $('.banner_ul li'); var icon_li = $('.icon_ul li'); var img_length = $('.banner_ul li').length;; var _width =阅读全文
posted @ 2017-04-12 15:59 我是前端QQ942031558 阅读(6) 评论(0) 编辑
浏览器缩放resize
摘要: var timer = null; $(window).resize(function () { if(timer) { clearTimeout(timer) } else { setTimeout(mediaScreen, 500); } });阅读全文
posted @ 2017-04-12 15:18 我是前端QQ942031558 阅读(9) 评论(0) 编辑

 2017年4月6日

点击切换全屏与退出
摘要: $(".full-btn").click(function(){ if($(this).hasClass("cur")){ $(this).removeClass("cur"); }else{ $(this).addClass("cur"); }})$('.full-btn').click(func阅读全文
原创粉丝点击