摘要: 方法一: 方法二: 出处:http://www.jb51.net/article/31550.htm 阅读全文
posted @ 2016-04-15 16:44 全玉 阅读(8258) 评论(0) 推荐(0) 编辑
摘要: 1. CSS判断横屏竖屏 写在同一个CSS中 @media screen and (orientation: portrait) { /*竖屏 css*/} @media screen and (orientation: landscape) and (min-width:450px){ /*横屏 阅读全文
posted @ 2016-04-15 16:31 全玉 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 1.单行文本溢出省略号 2.多行文本溢出省略号 WebKit浏览器或移动端的页面 在WebKit浏览器或移动端(绝大部分是WebKit内核的浏览器)的页面实现比较简单,可以直接使用WebKit的CSS扩展属性(WebKit是私有属性)-webkit-line-clamp ;注意:这是一个 不规范的属 阅读全文
posted @ 2016-04-15 15:56 全玉 阅读(263) 评论(0) 推荐(0) 编辑
摘要: warning: push.default is unset; its implicit value is changing inGit 2.0 from 'matching' to 'simple'. To squelch this messageand maintain the current 阅读全文
posted @ 2016-04-15 11:26 全玉 阅读(579) 评论(0) 推荐(0) 编辑
摘要: git配置ssh 1.首先设置git的全局user name和email $ git config --global user.name "ygtzz"$ git config --global user.email "ygtzz@123.com" 2.进入.ssh目录(没有就新建一个) Windo 阅读全文
posted @ 2016-04-15 11:22 全玉 阅读(1484) 评论(0) 推荐(0) 编辑
摘要: 弹出层简称pop,隐藏方法有两种。 1. pop上阻止冒泡,document上click隐藏pop jquery实现 pop show时注册一次document的click,可以减少document click的无谓触发和pop检测。 2. document上click,检测事件源,是否为pop或其 阅读全文
posted @ 2016-04-15 11:17 全玉 阅读(802) 评论(0) 推荐(0) 编辑