11 2016 档案

摘要:$(window).width(); //浏览器可视窗口宽度 $(window).height(); //浏览器可视窗口高度 $(document).width();//body的宽度 $(document.body).width();//body的宽度 $(document).height(); //body的高度 ... 阅读全文
posted @ 2016-11-25 15:21 dongxiaolei 编辑
摘要:jQuery jQuery基本选择器: id选择器 $(“#div1”) class选择器 $(“.div1”) 元素选择器 $(“div”) * 选择器 $(“*”) 所有元素 组合选择器 $(“#div1,.div1,div”) 层次选择器 $(“div span”) 获取div下的所有span 阅读全文
posted @ 2016-11-18 10:09 dongxiaolei 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <!-- <meta name="viewport" conten 阅读全文
posted @ 2016-11-17 14:16 dongxiaolei 编辑
摘要:<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="css/jl_public.css?v=11"/> <link rel="style 阅读全文
posted @ 2016-11-17 10:37 dongxiaolei 编辑
摘要: 阅读全文
posted @ 2016-11-15 10:24 dongxiaolei 编辑
摘要:if(navigator.userAgent.indexOf("MSIE")>0){ if(navigator.userAgent.indexOf("MSIE 6.0")>0){ alert("ie6浏览器"); } if(navigator.userAgent.indexOf("MSIE 7.0")>0){ ... 阅读全文
posted @ 2016-11-15 10:18 dongxiaolei 编辑
摘要:<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="css/style.css"/> </head> <body> <div class 阅读全文
posted @ 2016-11-14 18:26 dongxiaolei 编辑
摘要:注:我写的这个方法,实现的效果是当图片的上边框显示在可视区域内时,把图片的真实路径赋值给src。 如果需要让图片全部显示在可视区域时再换成真实src的话,需要把if判断中的条件换成 $off + $height - $scroll < clientH 首先给需要延迟加载的img标签加个class名l 阅读全文
posted @ 2016-11-11 11:23 dongxiaolei 编辑
摘要:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <style> .cc{ margin:20px auto; background:#208adb; cursor:pointer; width: 阅读全文
posted @ 2016-11-09 17:38 dongxiaolei 编辑
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtm 阅读全文
posted @ 2016-11-08 17:21 dongxiaolei 编辑
摘要:字体文件转换地址 http://www.fontconverter.org/?userfile_url=&requiredfile_userfile=1&outFormat=woff http://www.freefontconverter.com/ http://blog.csdn.net/agi 阅读全文
posted @ 2016-11-08 17:12 dongxiaolei 编辑
摘要:var uploadPreview = function(setting) { /* *this(当前对象) */ var _self = this; /* *判断为null或者空值 */ _self.IsNull = function(value) { if (typeof (value) == 阅读全文
posted @ 2016-11-08 17:08 dongxiaolei 编辑
摘要:无标题文档 static:对象遵循常规流。top,right,bottom,left等属性不会被应用。 relative: 对象遵循常规流,并且参照自身在常规流中的位置通过top,right,bottom,left属性进行偏移时不影响常规流中的任何元素。 absolute:对象脱离常规流,使用top,right,bottom,left等属性进行绝... 阅读全文
posted @ 2016-11-08 16:02 dongxiaolei 编辑
摘要:/*左侧*/ .wrapper, .main { height: 100%; z-index: 9 } .main { position: relative; } .main_L { width: 238px; height: 100%; background-color: #293038; pos 阅读全文
posted @ 2016-11-07 10:00 dongxiaolei 编辑
摘要:参考:https://segmentfault.com/a/1190000003978624 阅读全文
posted @ 2016-11-04 17:41 dongxiaolei 编辑
摘要:“-″减号是IE6专有的hack “\9″ IE6/IE7/IE8/IE9/IE10都生效 “\0″ IE8/IE9/IE10都生效,是IE8/9/10的hack “\9\0″ 只对IE9/IE10生效,是IE9/10的hack :root .rz-dropDown { height: 12px// 阅读全文
posted @ 2016-11-02 14:32 dongxiaolei 编辑

点击右上角即可分享
微信分享提示