摘要: 1. 准备svg图片 2. 打开icomoon选择icomoon App 3. import icons 上传本地的svg图片 4. 点击选中以后点击generate fonts形成字体图标 5. preferences可以设置样式。比如兼容ie,比如基线对齐等等 6. 最后下载文件就可以了 阅读全文
posted @ 2017-11-21 13:24 对三 阅读(633) 评论(0) 推荐(0) 编辑
摘要: var mydate = new Date();//通过new方法创建对象 //alert(Date()); // 返回一个完整的日期时间 // alert(mydate.getDay());//返回当前是周几 // alert(mydate.getMonth()+1);//返回当前月份 //alert(mydate.getFullYear());//返回... 阅读全文
posted @ 2017-11-19 14:18 对三 阅读(834) 评论(0) 推荐(0) 编辑
摘要: http://www.tianqi.com/plugin/ 阅读全文
posted @ 2017-11-19 13:24 对三 阅读(257) 评论(0) 推荐(0) 编辑
摘要: var timer;window.onscroll = function () { clearTimeout(timer); timer = setTimeout(function () { alert(1) }, 100)} 阅读全文
posted @ 2017-11-17 15:47 对三 阅读(2433) 评论(0) 推荐(0) 编辑
摘要: 首先需设置将文本强制在一行内显示,然后将溢出的文本通过overflow:hidden截断,并以text-overflow:ellipsis方式将截断的文本显示为省略号。 首先需设置将文本强制在一行内显示,然后将溢出的文本通过overflow:hidden截断,并以text-overflow:elli 阅读全文
posted @ 2017-11-15 11:42 对三 阅读(440) 评论(0) 推荐(0) 编辑
摘要: #test{width:150px;white-space:nowrap;} 阅读全文
posted @ 2017-11-15 11:41 对三 阅读(256) 评论(0) 推荐(0) 编辑
摘要: function scroll() { //ie9+ 标准浏览器 if (window.pageYOffset != null) { return { left: window.pageXOffset, top: window.pageYOffset } } //声明DTD的 ... 阅读全文
posted @ 2017-11-14 14:17 对三 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 兼容ie的半透明背景颜色过滤器,会影响事件的触发. 阅读全文
posted @ 2017-11-14 09:01 对三 阅读(105) 评论(0) 推荐(0) 编辑
摘要: //add() 方法用于向 添加一个 元素。 //new Option() 创建一个option标签 school.add(new Option('北京大学1')); school.add(new Option('北京大学2')); school.add(new Option('北京大学3')... 阅读全文
posted @ 2017-11-12 21:26 对三 阅读(2072) 评论(0) 推荐(0) 编辑
摘要: //add() 方法用于向 添加一个 元素。 //new Option() 创建一个option标签 school.add(new Option('北京大学1')); school.add(new Option('北京大学2')); school.add(new Option('北京大学3')... 阅读全文
posted @ 2017-11-12 21:25 对三 阅读(1005) 评论(0) 推荐(0) 编辑