04 2016 档案
摘要:方法一: 方法二: 出处:http://www.jb51.net/article/31550.htm
阅读全文
摘要:1. CSS判断横屏竖屏 写在同一个CSS中 @media screen and (orientation: portrait) { /*竖屏 css*/} @media screen and (orientation: landscape) and (min-width:450px){ /*横屏
阅读全文
摘要:1.单行文本溢出省略号 2.多行文本溢出省略号 WebKit浏览器或移动端的页面 在WebKit浏览器或移动端(绝大部分是WebKit内核的浏览器)的页面实现比较简单,可以直接使用WebKit的CSS扩展属性(WebKit是私有属性)-webkit-line-clamp ;注意:这是一个 不规范的属
阅读全文
摘要:warning: push.default is unset; its implicit value is changing inGit 2.0 from 'matching' to 'simple'. To squelch this messageand maintain the current
阅读全文
摘要:git配置ssh 1.首先设置git的全局user name和email $ git config --global user.name "ygtzz"$ git config --global user.email "ygtzz@123.com" 2.进入.ssh目录(没有就新建一个) Windo
阅读全文
摘要:弹出层简称pop,隐藏方法有两种。 1. pop上阻止冒泡,document上click隐藏pop jquery实现 pop show时注册一次document的click,可以减少document click的无谓触发和pop检测。 2. document上click,检测事件源,是否为pop或其
阅读全文
摘要:1. JavaScript钩子使用的class不能是css class,要加j或j-前缀 2. 选择器 2.1 css选择器尽量简短,层级要少,最好是1-2层 例如:.nav{} 优于 ul.nav{} 2.2 不要依赖于html层级结构 例如:.nav a{} 优于 .nav li a{} 2.3
阅读全文