摘要: $('#id').siblings() 当前元素所有的兄弟节点$('#id').prev() 当前元素前一个兄弟节点$('#id').prevaAll() 当前元素之前所有的兄弟节点$('#id').next() 当前元素之后第一个兄弟节点$('#id').nextAll() 当前元素之后所有的兄弟 阅读全文
posted @ 2018-04-11 11:15 quitpoison 阅读(2904) 评论(0) 推荐(0) 编辑
摘要: jquery实现当页面滚动超过一屏时显示返回顶部按钮 1111111111 1111111111 阅读全文
posted @ 2018-04-11 10:47 quitpoison 阅读(1820) 评论(0) 推荐(0) 编辑
摘要: 一行的时候 .text1 { width:200px; overflow:hidden; text-overflow:ellipsis; -o-text-overflow:ellipsis; -webkit-text-overflow:ellipsis; -moz-text-overflow:ell 阅读全文
posted @ 2018-04-11 10:43 quitpoison 阅读(110) 评论(0) 推荐(0) 编辑
摘要: ::-webkit-scrollbar { width: 15px; } /* 这是针对缺省样式 (必须的) */ ::-webkit-scrollbar { width: 15px; } /* 这是针对缺省样式 (必须的) */ ::-webkit-scrollbar-track { backgr 阅读全文
posted @ 2018-04-11 10:43 quitpoison 阅读(118) 评论(0) 推荐(0) 编辑
摘要: css div{ width:200px;height:200px;background:#eee;} /* ie下的样式*/ p span{ display:block; width:200px; overflow:hidden; white-space:nowrap; text-overflow 阅读全文
posted @ 2018-04-11 10:42 quitpoison 阅读(275) 评论(0) 推荐(0) 编辑
摘要: /* IE9placeholder支持 */ if(!placeholderSupport()){ // 判断浏览器是否支持 placeholder $('[placeholder]').focus(function() { var input = $(this); if (input.val()  阅读全文
posted @ 2018-04-11 10:41 quitpoison 阅读(840) 评论(0) 推荐(0) 编辑