上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 36 下一页
摘要: input文本框是纯色背景的 1. input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px white inset!important; box-shadow: 0 0 0px 1000px white inset!important; 阅读全文
posted @ 2018-09-19 17:20 justSmile2 阅读(162) 评论(0) 推荐(0)
摘要: 1.使用隐藏控件或者是js全局变量来临时存储数据,全局变量容易导致命名污染,隐藏控件导致经常读写dom浪费性能 jQuery提供了自己的数据缓存方案,使用jQuery数据缓存方案,我们需要掌握$.data()、$.cache、$.expando、$.hasData()、$.removeData()。 阅读全文
posted @ 2018-09-19 17:02 justSmile2 阅读(387) 评论(0) 推荐(0)
摘要: 一、绑定/修改 .jQuery修改属性值,都是在内存中进行的,并不会修改 DOM 1. 对象绑定 $(selector).data(name) $("#form").data("name") 2. dom 绑定 $.data(element,name, val); jQuery.data($("#f 阅读全文
posted @ 2018-09-19 14:38 justSmile2 阅读(345) 评论(0) 推荐(0)
摘要: 1.原始 marquee 2.自定义 marquee .tops { color: #fff; height: 23px; margin: 0 0 0 20px; min-height: 23px; overflow: hidden; } .tops a { float: left; } .tops 阅读全文
posted @ 2018-09-15 18:17 justSmile2 阅读(512) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-09-12 19:29 justSmile2 阅读(36) 评论(0) 推荐(0)
摘要: 1.知识点:Navigator 对象属性 2.判断pc端还是移动端 function isPC() { var userAgentInfo = navigator.userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows 阅读全文
posted @ 2018-09-11 19:55 justSmile2 阅读(152) 评论(0) 推荐(0)
摘要: 上源码 (function() { window.onclick = function(event) { var heart = document.createElement("b"); heart.onselectstart = new Function('event.returnValue=fa 阅读全文
posted @ 2018-09-11 19:30 justSmile2 阅读(90) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-09-10 22:48 justSmile2 阅读(21) 评论(0) 推荐(0)
摘要: 1.绑定 function(element, type, handler){ if (element.addEventListener) { element.addEventListener(type, handler, false); } else if (element.attachEvent) 阅读全文
posted @ 2018-09-10 21:57 justSmile2 阅读(432) 评论(0) 推荐(0)
摘要: 之前收藏的一个网页出现了404,这个404页面很有特色,有个毛玻璃特效看起来好晕,贴出来大家一起晕: #header{animation: focus 10s ease-in-out infinite; -webkit-filter: blur(0rem);}@keyframes focus {0% 阅读全文
posted @ 2018-09-10 19:23 justSmile2 阅读(193) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 36 下一页