代码改变世界

头部固定下面滑动&&获取手机屏高

2016-08-17 10:09 by 路途遥远,Go~, 549 阅读, 0 推荐, 收藏, 编辑
摘要:height(){ //获取屏高 let phone_height = document.documentElement.clientHeight; let group = this.refs.search; //console.log(group,phone_height); //40px 是顶部 阅读全文

css 参考手册

2016-08-10 09:22 by 路途遥远,Go~, 178 阅读, 0 推荐, 收藏, 编辑
摘要:http://www.css88.com/book/css/ 阅读全文

js 点击展开、收起

2016-08-09 17:27 by 路途遥远,Go~, 2756 阅读, 0 推荐, 收藏, 编辑
摘要://点击展开、收起 window.onload=function(){ var current=document.getElementsByTagName('li')[0]; document.body.addEventListener('touchend', function(e) { var s 阅读全文

CSS 编码规范

2016-08-09 15:12 by 路途遥远,Go~, 5993 阅读, 0 推荐, 收藏, 编辑
摘要:转自: https://segmentfault.com/a/1190000005046830 CSS书写格式 1.格式化代码 1.1文件 [建议]:CSS文件使用无BOM的UTF-8编码 1.2缩进 [强制]:使用 4 个空格做为一个缩进层级,不允许使用 2 个空格 或 tab 字符。 1.3空格 阅读全文

css 字体样式

2016-08-09 15:03 by 路途遥远,Go~, 3532 阅读, 0 推荐, 收藏, 编辑
摘要:[强制] font-family 属性中的字体族名称应使用字体的英文 Family Name,其中如有空格,须放置在引号中。 解释: 所谓英文 Family Name,为字体文件的一个元数据,常见名称如下: 示例: [强制] font-family 按「西文字体在前、中文字体在后」、「效果佳 (质量 阅读全文

css 去除标签默认样式

2016-08-09 14:12 by 路途遥远,Go~, 895 阅读, 0 推荐, 收藏, 编辑
摘要:p,ul,ol,li,dl,dt,dd { list-style-type: none; margin: 0; padding: 0;} 阅读全文

伪类写border, transform: scale3d() 及兼容性

2016-08-09 14:05 by 路途遥远,Go~, 2574 阅读, 0 推荐, 收藏, 编辑
摘要:.top::before { content: ""; position: absolute; left: 0; width: 200%; height: 0; border-top: 1px solid #cccccc; transform-origin: left top; transform: 阅读全文

css 字数超过一行显示省略号

2016-08-09 14:02 by 路途遥远,Go~, 869 阅读, 0 推荐, 收藏, 编辑
摘要:display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; 阅读全文

js - ajax中的get和post说明

2016-08-08 20:33 by 路途遥远,Go~, 3516 阅读, 0 推荐, 收藏, 编辑
摘要:转自:http://www.cnblogs.com/hateyoucode/archive/2009/12/09/1620050.html 一.谈Ajax的Get和Post的区别 Get方式: 用get方式可传送简单数据,但大小一般限制在1KB下,数据追加到url中发送(http的header传送) 阅读全文

display:flex 多栏多列布局

2016-08-02 10:57 by 路途遥远,Go~, 4434 阅读, 0 推荐, 收藏, 编辑
摘要:转自:http://www.360doc.com/content/14/0811/01/2633_400926000.shtml display:flex 多栏多列布局浏览器支持情况:火狐直接支持w3c无前缀写法,谷歌和opera支持-webkit- 前缀写法,比较适合移动端开发使用, displa 阅读全文