摘要: /* 父复选框 */ var optionListAll = $('.optionListAll'); var allList= $('[name="optionList"]');var listLength = allList.length; // 父复选框全选/全不选 optionListAll.on("click", function() { var self =... 阅读全文
posted @ 2018-01-15 11:27 段伏英 阅读(243) 评论(0) 推荐(0) 编辑
摘要: body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td {margin:0;padding:0;} body, button, input, select, textarea {font:12px/1.5 tahoma, arial,... 阅读全文
posted @ 2018-01-05 15:46 段伏英 阅读(123) 评论(0) 推荐(0) 编辑
摘要: dir == 'Up' ? num += num * .25 : num -= num / 4; img.css('width', num); 未经本人同意,请勿转载。如有错误之处,烦请不吝赐教! 阅读全文
posted @ 2017-12-27 17:36 段伏英 阅读(552) 评论(0) 推荐(0) 编辑
摘要: document.onreadystatechange = function () { if(document.readyState == 'complete'){ // code } } 阅读全文
posted @ 2017-12-26 14:54 段伏英 阅读(137) 评论(0) 推荐(0) 编辑
摘要: /*流程步骤*/.check-flow2 { display: inline-block; width: 100%; height: auto; padding-top: 10px; padding-bottom: 20px; margin-bottom: 20px; border: 1px sol 阅读全文
posted @ 2017-12-12 14:01 段伏英 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 一直想弄明白浏览器内核有那几个,以前也见过但是就是记不住,突然想起这个在面试的时候会经常用到。在知乎上搜索到浏览器常用内核的解答,留着备用。 一、Trident内核代表产品Internet Explorer,又称其为IE内核。 Trident(又称为MSHTML),是微软开发的一种排版引擎。使用Tr 阅读全文
posted @ 2017-08-26 10:30 段伏英 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <met 阅读全文
posted @ 2017-08-07 12:12 段伏英 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1.使用更高优先级的选择器选择,修改,将原来的覆盖掉。比如原来是用的类选择器,后面使用id选择器; 2.使用js控制,js先删除原来!important所在的那个选择器,重新写一个选择器样式,js添加上去 ps:如有更好方法,烦请不吝赐教 阅读全文
posted @ 2017-08-04 10:18 段伏英 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 1.根元素 2. float属性不为none3.position为absolute或fixed 4.display为inline-block, table-cell, table-caption, flex, inline-flex 5.overflow不为visible 阅读全文
posted @ 2017-07-06 15:28 段伏英 阅读(1356) 评论(0) 推荐(0) 编辑
摘要: 问题:当我们访问一个网址后发生了什么?或者 描述一个http事物?1,输入网址(例如www.baidu.com2,解析域名(获得服务的ip地址3,建立连接(与后台建立通信之前与服务器的通信,TCP/IP协议三次握手:①打开客户端,客户端向服务器发出连接请求②服务器回应客户端的请求,并要求确认③客户 阅读全文
posted @ 2016-11-28 17:29 段伏英 阅读(443) 评论(0) 推荐(0) 编辑