会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
笑嘻嘻的小银
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
下一页
2017年4月19日
基于jquery的移动端JS无缝切换
摘要: Html: 1 <div id="slide-box-1"> 2 <ul> 3 <li> 4 <a href="javascript:void(0);"> 5 <div class="slide-img"> 6 <img src="images/ambassador/a-1.jpg"> 7 </di
阅读全文
posted @ 2017-04-19 15:16 陈小银
阅读(516)
评论(0)
推荐(0)
2017年3月22日
判断form表单每个input字段是否有内容
摘要: 1 //---------------------------------------------------input失去焦点时判断是否有值 2 btn_click: function () { 3 //input失去焦点时判断是否有值 若没有 则不能点击保存 4 function Input_verifica...
阅读全文
posted @ 2017-03-22 12:15 陈小银
阅读(2389)
评论(0)
推荐(0)
2017年3月16日
整合常用功能的JS小组件库-v1.0
摘要: 调用方法
阅读全文
posted @ 2017-03-16 16:50 陈小银
阅读(532)
评论(0)
推荐(0)
获取网页可见区域的宽高(兼容各浏览器)
摘要: //js 兼容各浏览器 var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; //height var w = window.innerWidth || document.documentElement.clientWidth || documen...
阅读全文
posted @ 2017-03-16 10:51 陈小银
阅读(453)
评论(0)
推荐(0)
2017年3月15日
判断网页上滚还是下滚
摘要: //判断是上滚还是下滚function scroll(fn) { var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop, fn = fn || function () { }; window.addEventListener("scr...
阅读全文
posted @ 2017-03-15 15:27 陈小银
阅读(485)
评论(0)
推荐(0)
2017年3月13日
文字溢出处理
摘要: width: 960px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
阅读全文
posted @ 2017-03-13 11:06 陈小银
阅读(183)
评论(0)
推荐(0)
2017年3月9日
网页导航条滚动固定
摘要: function Head_menu(menu_container) { var _top = menu_container.offset().top; this.scroll_div = function () { var top = document.documen...
阅读全文
posted @ 2017-03-09 12:51 陈小银
阅读(286)
评论(0)
推荐(0)
2017年3月7日
清除浮动
摘要: > div { zoom: 1; } > div:after { display: block; clear: both; content: ""; visibility: hidden; height: 0; }
阅读全文
posted @ 2017-03-07 11:25 陈小银
阅读(164)
评论(0)
推荐(0)
2017年1月11日
CSS文字两端对齐
摘要: text-align: justify; text-justify: distribute-all-lines; text-align-last: justify; width: 86px
阅读全文
posted @ 2017-01-11 15:35 陈小银
阅读(210)
评论(0)
推荐(0)
2016年11月14日
获取浏览器距离各边的距离
摘要: var box = document.getElementById( "gaga1" ); /* alert( box.getBoundingClientRect().top ); alert( box.getBoundingClientRect().right ); alert( box.getBoundingClientRect().bottom ); alert( box.getB...
阅读全文
posted @ 2016-11-14 17:05 陈小银
阅读(251)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
下一页
公告