摘要: /** * YDUI 可伸缩布局方案 * rem计算方式:设计图尺寸px / 100 = 实际rem 例: 100px = 1rem */ !function (window) { /* 设计图文档宽度 */ var docWidth = 750; var doc = window.document, docEl = doc.documentE... 阅读全文
posted @ 2018-09-18 17:41 崔凯通 阅读(152) 评论(0) 推荐(0) 编辑
摘要: /*手机端实现真正的一像素边框*/ .border-1px, .border-bottom-1px, .border-top-1px, .border-left-1px, .border-right-1px { position: relative; } /*线条颜色 黑色*/ .border-1px::after, .border-bottom-1px::after, .border-... 阅读全文
posted @ 2018-09-18 17:25 崔凯通 阅读(245) 评论(0) 推荐(0) 编辑
摘要: mixins文件混入规则 : 1、 数据对象在内部会进行浅合并 (一层属性深度),在和组件的数据发生冲突时以组件数据优先。2、 值为对象的选项,例如 methods, components 和 directives,将被混合为同一个对象。两个对象键名冲突时,取组件对象的键值对。3、 同名钩子函数将混合为一个数组,因此都将被调用。另外,混入对象的钩子将在组件自身钩子之前调用。 ... 阅读全文
posted @ 2018-09-18 14:58 崔凯通 阅读(287) 评论(0) 推荐(0) 编辑