摘要: 只针对文本编码 encodeURI() 只针对文本解码 decodeURI()针对文本和特殊字符的编码 encodeURIComponent()针对文本和特殊字符的解码 decodeURIComponent() 阅读全文
posted @ 2017-11-02 15:42 刘倩文 阅读(9961) 评论(0) 推荐(0) 编辑
摘要: 引用jQuery的插件jquery.pseudo.js插件内容: 阅读全文
posted @ 2017-11-01 16:48 刘倩文 阅读(454) 评论(0) 推荐(0) 编辑
摘要: ie8下不支持css的nth-child()样式解决方法一:使用jQuery的nth-child()方法例:$(".ability-head-list ul li:nth-child(1) a").css("color","red");解决方法二:例如给第三个li加样式ul li:first-chi 阅读全文
posted @ 2017-11-01 14:59 刘倩文 阅读(140) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>拖拽</title> <style> .nav { width: 200px; height: 200px; border: 1px solid black; } 阅读全文
posted @ 2017-10-16 13:14 刘倩文 阅读(172) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>点击增加删除class</title> <style> .box{ width: 100px; height: 100px; background-color: b 阅读全文
posted @ 2017-10-16 13:05 刘倩文 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 一、单行超出自动省略 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>css控制超出部分自动省略...</title> <style> .nav { width: 100px; white-space: no 阅读全文
posted @ 2017-10-16 12:59 刘倩文 阅读(450) 评论(0) 推荐(0) 编辑
摘要: focus与focusin 1.共同点:当 <div> 元素或其任意子元素获得焦点时执行事件 2.区别:focus不支持冒泡,而focusin支持冒泡; blur与focusout 1.共同点:当 <div> 元素或其任意子元素失去焦点时执行事件 2.区别:blur不支持冒泡,而focusout支持 阅读全文
posted @ 2017-08-11 13:14 刘倩文 阅读(500) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>获取当下往后七天的时间</title></head><body><script> //方法一:借鉴来的 function getAfterDate(n) { var 阅读全文
posted @ 2017-07-22 12:07 刘倩文 阅读(947) 评论(0) 推荐(0) 编辑