上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 示例一: 代码: <style type="text/css"> .one { height: 200px; width: 200px; margin: 10px auto; line-height: 200px; background: yellowgreen; background: linea 阅读全文
posted @ 2019-12-16 12:07 执手听风吟 阅读(414) 评论(0) 推荐(0) 编辑
摘要: @:表示vue语法中v-on的简写;绑定事件的专用格式。当事件触发的时候,函数才会来调用; @ /:在build文件夹下webpack.base.conf.js找到@,便能知道@代表什么了; 这里指向src文件夹; . /:表示当前目录下; ../: 表示父级目录。 阅读全文
posted @ 2019-11-25 15:46 执手听风吟 阅读(7913) 评论(0) 推荐(2) 编辑
摘要: 1. 给vue组件绑定事件时候,必须加上native ,否则会认为监听的是来自Item组件自定义的事件。 例子:如果使用router-link标签,加上@click事件,绑定的事件会无效因为:router-link的作用是单纯的路由跳转,会阻止click事件,你可以试试只用click不用native 阅读全文
posted @ 2019-11-25 15:40 执手听风吟 阅读(5827) 评论(0) 推荐(0) 编辑
摘要: Element.scrollIntoView() 方法让当前的元素滚动到浏览器窗口的可视区域内。 语法element.scrollIntoView(); // 等同于element.scrollIntoView(true) element.scrollIntoView(alignToTop); // 阅读全文
posted @ 2019-11-22 10:50 执手听风吟 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 在css盒模型默认的定义里,对一个元素设置width和height只会应用到该元素的的内容区,如果这个元素有任何的border或padding,绘制到屏幕上的宽度和高度会加上border和padding,所以当你调整一个元素的宽度和高度时要时刻注意这个元素的边框和内边距,特别是在做响应式布局时,这个 阅读全文
posted @ 2019-11-22 09:47 执手听风吟 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 效果: 代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equ 阅读全文
posted @ 2019-11-16 15:35 执手听风吟 阅读(222) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <htmlxmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>无标题文档</t 阅读全文
posted @ 2019-11-14 16:01 执手听风吟 阅读(6149) 评论(0) 推荐(1) 编辑
摘要: /* Chrome、Safari 、Opera浏览器 */ input::-webkit-input-placeholder { color: #fff; } /* 火狐浏览器 */ input::-moz-placeholder { color: #fff; } /* IE浏览器 */ input 阅读全文
posted @ 2019-11-14 10:43 执手听风吟 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 插件官网:https://www.layui.com/laydate/配置很多,操作也简单。 基本用法: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>layDate</title> </head> <body> <input 阅读全文
posted @ 2019-11-14 10:41 执手听风吟 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 说明:npm run dev 没有报错,可以正常运行;npm run build 过程中也没有报错,但是打包上线时index.html就报错了 解决方法(很简单): 阅读全文
posted @ 2019-11-12 18:14 执手听风吟 阅读(12848) 评论(0) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页