摘要: 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丶浩 阅读(139) 评论(0) 推荐(0) 编辑
摘要: background: rgba(0, 0, 0, 0.7); /* IE滤镜 */ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7F000000,endColorstr=#7F000000); 阅读全文
posted @ 2021-03-18 17:57 YH丶浩 阅读(22) 评论(0) 推荐(0) 编辑
摘要: //调用cssget()function cssget() { var style = (function() { var style = document.createElement('style'); document.head.appendChild(style); return style; 阅读全文
posted @ 2021-03-04 09:54 YH丶浩 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 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丶浩 阅读(759) 评论(0) 推荐(0) 编辑
摘要: 防止IE下 下拉加载 多条数据 // 先初始一个变量 var b=0 function scroll(){ //给div绑定一个scroll事件 $('.main').bind('scroll',function(){ var nDivHight = $(".main").height(); nSc 阅读全文
posted @ 2021-01-11 11:40 YH丶浩 阅读(123) 评论(0) 推荐(0) 编辑
摘要: function randomID() { return Number(Math.random().toString().substr(2,0) + Date.now()).toString(36); } console.log(randomID()); 阅读全文
posted @ 2021-01-06 19:51 YH丶浩 阅读(1630) 评论(0) 推荐(0) 编辑
摘要: 1,先获取到浏览器里面的key值 var Game_Data = JSON.parse(localStorage.getItem('loc')) // 之前存储 2,判断这个值存不存在 if (Game_Data == null) { //不存在就建立一个新的数组(第一次进入浏览器肯定是不存在) v 阅读全文
posted @ 2020-12-23 16:27 YH丶浩 阅读(1716) 评论(0) 推荐(0) 编辑
摘要: // 返回顶部 //btnTop返回顶部的按钮 // mescroll 内容版块 $(".btnTop").click(function() { $('.mescroll').animate({ scrollTop: 0 }, 1000); return false; }); 阅读全文
posted @ 2020-12-11 15:32 YH丶浩 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 第一部分: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丶浩 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 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丶浩 阅读(519) 评论(0) 推荐(0) 编辑