会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
攻城狮的进阶
成长ing
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
2017年11月2日
encodeURI()与decodeURI()等转码方法
摘要: 只针对文本编码 encodeURI() 只针对文本解码 decodeURI()针对文本和特殊字符的编码 encodeURIComponent()针对文本和特殊字符的解码 decodeURIComponent()
阅读全文
posted @ 2017-11-02 15:42 刘倩文
阅读(9989)
评论(0)
推荐(0)
2017年11月1日
ie8不支持伪类选择器的解决方案
摘要: 引用jQuery的插件jquery.pseudo.js插件内容:
阅读全文
posted @ 2017-11-01 16:48 刘倩文
阅读(471)
评论(0)
推荐(0)
ie8兼容性
摘要: 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 刘倩文
阅读(146)
评论(0)
推荐(0)
2017年10月16日
拖拽功能-jquery
摘要: <!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 刘倩文
阅读(179)
评论(0)
推荐(0)
点击增加删除class
摘要: <!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 刘倩文
阅读(227)
评论(0)
推荐(0)
css控制超出部分自动省略...
摘要: 一、单行超出自动省略 <!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 刘倩文
阅读(461)
评论(0)
推荐(0)
2017年8月11日
focus,focusin,blur,focusout区别
摘要: focus与focusin 1.共同点:当 <div> 元素或其任意子元素获得焦点时执行事件 2.区别:focus不支持冒泡,而focusin支持冒泡; blur与focusout 1.共同点:当 <div> 元素或其任意子元素失去焦点时执行事件 2.区别:blur不支持冒泡,而focusout支持
阅读全文
posted @ 2017-08-11 13:14 刘倩文
阅读(589)
评论(0)
推荐(0)
2017年7月22日
JavaScript—获取当下往后七天的时间
摘要: <!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 刘倩文
阅读(1065)
评论(0)
推荐(0)
上一页
1
2
3
4
5
公告