摘要: 逻辑或操作符由两个竖线来表示||,属于短路操作符,也就是说,如果第一个操作数的求职结果为true,就不会对第二个操作数进行求值 var found = true; var result = found || something; alter(result);//true 在上面的列子中somethi 阅读全文
posted @ 2016-12-08 11:54 DengPan 阅读(255) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> *{margin:0px;padding:0px;} .box{ width:980px; height:100px; 阅读全文
posted @ 2016-11-30 16:52 DengPan 阅读(1487) 评论(0) 推荐(0) 编辑
摘要: .aui-list-item-arrow:before { content: ''; width: 0.4rem; height: 0.4rem; position: absolute; top: 50%; right: 0.75rem; margin-top: -0.2rem; backgroun 阅读全文
posted @ 2016-11-30 13:18 DengPan 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 下面是包含script结束时的错误代码 阅读全文
posted @ 2016-11-25 10:15 DengPan 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 匹配中文:[\u4e00-\u9fa5] 匹配英文:[a-zA-Z] 匹配数字:[0-9] 匹配中文,英文字母和数字及_: ^[\u4e00-\u9fa5_a-zA-Z0-9]+$ 阅读全文
posted @ 2016-11-15 15:41 DengPan 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 新建文件夹 ctrl + shift + n 阅读全文
posted @ 2016-11-04 10:25 DengPan 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 实现方法:下面的元素开始不显示,当划过时显示并且整体向上移,则就有变换的菜单效果 阅读全文
posted @ 2016-11-03 14:45 DengPan 阅读(176) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>尖角</title> <style type="text/css"> .box{ width: 0; display: block; border-bottom: 阅读全文
posted @ 2016-11-03 14:43 DengPan 阅读(155) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> *{ margin: 0px; padding: 0px; } ul{ list- 阅读全文
posted @ 2016-11-03 14:41 DengPan 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 一般的radio与check的样式很难看,这个时候就需要我们自己修改其样式 逻辑思维: 1.用label包裹input标签以及样式标签,然后将radio定位到界面以外,设置样式标签的样式 2.使用伪类来为点击时添加样式 阅读全文
posted @ 2016-11-03 14:34 DengPan 阅读(400) 评论(0) 推荐(0) 编辑