2016年5月3日
摘要: 1:除去上下导航高度,文档可见宽度高度:window.innerHeight()/window.innerWidth 2:整个屏幕的宽高:screen.availHeight/Width 3:获取当前元素到父元素顶部的距离:height=当前元素.offsetTop 当前元素的绝对定位的父元素的距离 阅读全文
posted @ 2016-05-03 16:45 sadydai 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1. .clear{clear:both;line-height:0;} 》创建空标签来实现 2: .clearfix:after { content:"200B"; display:block; height:0; clear:both; } .clearfix {*zoom:1;}/*IE/7/ 阅读全文
posted @ 2016-05-03 09:49 sadydai 阅读(145) 评论(0) 推荐(0) 编辑