• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Mr Zhu
人生只是路过,不断折腾就是生活 ----- 大乐
博客园 首页 新随笔 联系 订阅 订阅 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

2016年11月9日

js 表单验证方法二
摘要: function ckReight () { var pass = true; var new = $("#new"); if( new.find('input[name=name]').val().trim() == '' || new.find('input[name=name]').val().trim() ==null ) { $("#newnameMsg").show();... 阅读全文
posted @ 2016-11-09 17:29 LiuYier 阅读(239) 评论(0) 推荐(0)
 
form input file 图片上传360IE兼容问题
摘要: // 错误的做法,不需要用 for来关联input // 正确的做法 一、上面是html文档结构 二、出现的问题:前端用form表单做图片上传 这种方法在其他浏览器下都是正常的,但有个奇葩的浏览器360兼容模式 会出现点击上传, 然后弹框就突然消失了 三、解决办法 label标签中不要用 for来关联input, 直接给input设置宽高,定位到label... 阅读全文
posted @ 2016-11-09 15:33 LiuYier 阅读(1556) 评论(0) 推荐(0)
 
 

2016年11月7日

css display:inline-block 出现空格解决方案
摘要: 一: 给父元素添加 display: table;(只加这一句在谷歌, safari里可以) 子元素加: display: table-cell(火狐) 两句都加完美解决 二: .nav ul{font-size:0;} .nav li{display:inline-block; font-size:14px;} .nav li{*display:inline;} 阅读全文
posted @ 2016-11-07 17:20 LiuYier 阅读(1065) 评论(0) 推荐(0)
 
 

2016年10月31日

JS rem 设置
摘要: (function () { var docEl = document.documentElement; var resize = 'orientationchange' in window ? 'orientationchange' : 'resize'; var setRem = function () { var screenWidth = docEl.clientWidth ... 阅读全文
posted @ 2016-10-31 14:28 LiuYier 阅读(2304) 评论(0) 推荐(2)
 
 

2016年10月28日

时间格式转换
摘要: // 时间格式转换(毫秒转换成日期格式) function dateFormat () { if (formmat == '' || formmat == undefined || formmat == null) { formmat = 'yyyy-MM-dd'; } var t = new Date(time); var tf = function () { return ... 阅读全文
posted @ 2016-10-28 15:46 LiuYier 阅读(303) 评论(0) 推荐(0)
 
 

2016年10月27日

数据交互 -- 初始化省市区
摘要: // 初始化省 function init_province () { var province_str = ''; province_str += '全国'; for ( var o in provs_data ) { province_str += ''+provs_data[o].text+'' } $(".grade-province").html(province_s... 阅读全文
posted @ 2016-10-27 19:37 LiuYier 阅读(492) 评论(0) 推荐(0)
 
 

2016年10月26日

JS 信息提示弹框封装
摘要: // 功能提示弹框 function tipsBox ( option ) { var html = ''; if ( option.type == 'success' ) { html += ''+ option.message +''; } else if ( option.type == 'error' ) { html += ''; html += '' + opt... 阅读全文
posted @ 2016-10-26 17:41 LiuYier 阅读(443) 评论(0) 推荐(0)
 
JS 功能弹框封装
摘要: // 功能提示弹框 function messageBox ( option ) { var html = ''; html += '' + option.title; html += ''; if ( option.type == 'using' ) { html += ''; html += '' + option.content + ''; html += '';... 阅读全文
posted @ 2016-10-26 17:28 LiuYier 阅读(604) 评论(0) 推荐(0)
 
css3 弹框提示样式
摘要: .common-dialog-box{ opacity: 0; filter: alpha(opacity=0); position: fixed; top: 0%; left: 50%; z-index: 1000; width: 500px; height: 50px; line-height: 50px; margin-left: -250px; border-rad... 阅读全文
posted @ 2016-10-26 17:14 LiuYier 阅读(1790) 评论(0) 推荐(0)
 
css3 弹框功能样式
摘要: .message-box{ position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.3); visibility: hidden; } .message-box, .message-box-main, .btn{ transition: all 0.5s; ... 阅读全文
posted @ 2016-10-26 16:45 LiuYier 阅读(2296) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3