会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
YH丶浩
博客园
首页
新随笔
联系
订阅
管理
2021年3月25日
swiper兼容IE8 (使用swiper2)
摘要: HTML: <div class="swiper-container mn-swiper"> <div class="swiper-wrapper"> <div class="swiper-slide">Slide 1</div> <div class="swiper-slide">Slide 2<
阅读全文
posted @ 2021-03-25 17:18 YH丶浩
阅读(182)
评论(0)
推荐(0)
2021年3月18日
CSS3背景色透明----兼容IE8
摘要: background: rgba(0, 0, 0, 0.7); /* IE滤镜 */ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7F000000,endColorstr=#7F000000);
阅读全文
posted @ 2021-03-18 17:57 YH丶浩
阅读(24)
评论(0)
推荐(0)
2021年3月4日
在js中加载css
摘要: //调用cssget()function cssget() { var style = (function() { var style = document.createElement('style'); document.head.appendChild(style); return style;
阅读全文
posted @ 2021-03-04 09:54 YH丶浩
阅读(237)
评论(0)
推荐(0)
2021年2月24日
js实现规定范围内的两位随机数
摘要: function getRandomIntInclusive(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; //含最
阅读全文
posted @ 2021-02-24 19:08 YH丶浩
阅读(818)
评论(0)
推荐(0)
2021年1月11日
IE浏览器,局部div滚动条,下拉加载
摘要: 防止IE下 下拉加载 多条数据 // 先初始一个变量 var b=0 function scroll(){ //给div绑定一个scroll事件 $('.main').bind('scroll',function(){ var nDivHight = $(".main").height(); nSc
阅读全文
posted @ 2021-01-11 11:40 YH丶浩
阅读(130)
评论(0)
推荐(0)
2021年1月6日
js生成随机ID
摘要: function randomID() { return Number(Math.random().toString().substr(2,0) + Date.now()).toString(36); } console.log(randomID());
阅读全文
posted @ 2021-01-06 19:51 YH丶浩
阅读(1667)
评论(0)
推荐(0)
2020年12月23日
js实现localStorage储存多条数据(对象)
摘要: 1,先获取到浏览器里面的key值 var Game_Data = JSON.parse(localStorage.getItem('loc')) // 之前存储 2,判断这个值存不存在 if (Game_Data == null) { //不存在就建立一个新的数组(第一次进入浏览器肯定是不存在) v
阅读全文
posted @ 2020-12-23 16:27 YH丶浩
阅读(1797)
评论(0)
推荐(0)
2020年12月11日
jq实现返回顶部
摘要: // 返回顶部 //btnTop返回顶部的按钮 // mescroll 内容版块 $(".btnTop").click(function() { $('.mescroll').animate({ scrollTop: 0 }, 1000); return false; });
阅读全文
posted @ 2020-12-11 15:32 YH丶浩
阅读(72)
评论(0)
推荐(0)
swiper实现移动端导航和内容板块的联动
摘要: 第一部分:HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link
阅读全文
posted @ 2020-12-11 15:27 YH丶浩
阅读(370)
评论(0)
推荐(0)
2020年11月20日
css在背景图下加渐变色
摘要: background: url(https://d1.lanrentuku.com/upload/img/txb/2020/08/31/5f4ca97387d20.png) no-repeat center bottom,linear-gradient(-225deg, #5D9FFF 0%, #B
阅读全文
posted @ 2020-11-20 14:46 YH丶浩
阅读(526)
评论(0)
推荐(0)
下一页
公告