摘要: // 身份证验证 //身份证正则表达式(15位) isIDCard1=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/; //身份证正则表达式(18位) isIDCard2=/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[ 阅读全文
posted @ 2016-07-21 13:36 forgere 阅读(290) 评论(0) 推荐(0) 编辑
摘要: $('.items').on('moveend',function(e){ if(e.startX < e.pageX){ $(window).trigger('sliderMoveLeft'); }else{ $(window).trigger('sliderMoveRight'); } }); 阅读全文
posted @ 2016-07-20 17:31 forgere 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1.附件列表 2.带有index的 3.自身与兄弟元素 4.properties button 5.content_tag 6.content_img 7.home是举例子 是文件夹 8变量穿插 h2="¥#{ticket.content['price']}" =image_tag("tag_#{t 阅读全文
posted @ 2016-07-20 17:15 forgere 阅读(329) 评论(0) 推荐(0) 编辑
摘要: a:focus,input:focus{2 -webkit-tap-highlight-color:rgba(0,0,0,0) 阅读全文
posted @ 2016-07-14 19:23 forgere 阅读(1889) 评论(1) 推荐(0) 编辑
摘要: ajax,js,css,flex 阅读全文
posted @ 2016-06-17 16:49 forgere 阅读(288) 评论(0) 推荐(0) 编辑
摘要: jq的 animate的动画重复执行 导致浏览器卡死。 在animate()前加stop() 即可。 阅读全文
posted @ 2016-05-19 17:33 forgere 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1.user-select:none 文本不能被选择; 2.a标签包含img标签时 a display:block;或者img display:block;以免a的高度大于img 3.链接长按高亮颜色 -webkit-tap-highlight-color: rgba(0,0,0,0); 4.不允许 阅读全文
posted @ 2016-05-12 22:12 forgere 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 在手机排版时,内容绝对居中用到的特别频繁。 1. 如何让未知尺寸的图片在已知宽高的容器内水平垂直居中? .test{ position:relative; width:200px; height:200px; text-align:center; vertical-align:middle; bac 阅读全文
posted @ 2016-05-12 21:54 forgere 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 使用 animate()方法; 不多次执行animate; <script type="text/javascript"> $(document).ready(function(){ $("#start").click(function(){ if($("#box:animated").length 阅读全文
posted @ 2016-02-15 22:06 forgere 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-01-26 09:29 forgere 阅读(81) 评论(0) 推荐(0) 编辑