摘要: overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; 阅读全文
posted @ 2016-10-12 14:49 Vonson 阅读(1353) 评论(0) 推荐(0) 编辑
摘要: if (/Android [4-6]/.test(navigator.appVersion)) { window.addEventListener('resize', function () { if (document.activeElement.tagName 'INPUT' || docume 阅读全文
posted @ 2016-09-27 20:16 Vonson 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: .buttons-tab:after { content: ''; position: absolute; left: 0; bottom: 0; right: auto; top: auto; height: 1px; width: 100%; background-color: #d0d0d0; 阅读全文
posted @ 2016-08-29 10:28 Vonson 阅读(405) 评论(0) 推荐(0) 编辑
摘要: ①给父元素添加display:inline-block属性; 阅读全文
posted @ 2016-05-24 14:01 Vonson 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1.JavaScript插件化开发教程 (一)http://www.jb51.net/article/60419.htm; 2.JavaScript插件化开发教程 (二)http://www.jb51.net/article/60423.htm; 3.JavaScript插件化开发教程 (三)htt 阅读全文
posted @ 2016-03-10 15:42 Vonson 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 原文出自王福朋的博客:http://www.cnblogs.com/wangfupeng1988/p/3768304.html 阅读全文
posted @ 2015-12-04 15:14 Vonson 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 原文出自王福朋的博客:http://www.cnblogs.com/wangfupeng1988/p/3750489.html 阅读全文
posted @ 2015-12-04 15:13 Vonson 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 原文出自王福朋的博客 http://www.cnblogs.com/wangfupeng1988/p/3748514.html 阅读全文
posted @ 2015-12-04 15:09 Vonson 阅读(169) 评论(0) 推荐(0) 编辑
摘要: /*input框的自动登录的填充颜色*/input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset;}/*去掉ie自带的叉叉和密码显示(ie10+)*/::-ms-clear, ::-ms-reveal{displa... 阅读全文
posted @ 2015-11-17 10:18 Vonson 阅读(210) 评论(0) 推荐(0) 编辑
摘要: function isPlaceholder(){ var input = document.createElement('input'); return 'placeholder' in input; } if (!isPlaceholder()) {//不支持placeholder 用jquer 阅读全文
posted @ 2015-11-17 10:15 Vonson 阅读(4649) 评论(1) 推荐(1) 编辑