会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
执手听风吟
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
下一页
2019年12月16日
切角
摘要: 示例一: 代码: <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 执手听风吟
阅读(452)
评论(0)
推荐(0)
2019年11月25日
vue 中的@、@/、../和./的区别
摘要: @:表示vue语法中v-on的简写;绑定事件的专用格式。当事件触发的时候,函数才会来调用; @ /:在build文件夹下webpack.base.conf.js找到@,便能知道@代表什么了; 这里指向src文件夹; . /:表示当前目录下; ../: 表示父级目录。
阅读全文
posted @ 2019-11-25 15:46 执手听风吟
阅读(8605)
评论(0)
推荐(2)
vue组件添加事件@click.native
摘要: 1. 给vue组件绑定事件时候,必须加上native ,否则会认为监听的是来自Item组件自定义的事件。 例子:如果使用router-link标签,加上@click事件,绑定的事件会无效因为:router-link的作用是单纯的路由跳转,会阻止click事件,你可以试试只用click不用native
阅读全文
posted @ 2019-11-25 15:40 执手听风吟
阅读(5868)
评论(0)
推荐(0)
2019年11月22日
Element.scrollIntoView()
摘要: Element.scrollIntoView() 方法让当前的元素滚动到浏览器窗口的可视区域内。 语法element.scrollIntoView(); // 等同于element.scrollIntoView(true) element.scrollIntoView(alignToTop); //
阅读全文
posted @ 2019-11-22 10:50 执手听风吟
阅读(492)
评论(0)
推荐(0)
css3 box-sizing盒模型
摘要: 在css盒模型默认的定义里,对一个元素设置width和height只会应用到该元素的的内容区,如果这个元素有任何的border或padding,绘制到屏幕上的宽度和高度会加上border和padding,所以当你调整一个元素的宽度和高度时要时刻注意这个元素的边框和内边距,特别是在做响应式布局时,这个
阅读全文
posted @ 2019-11-22 09:47 执手听风吟
阅读(140)
评论(0)
推荐(0)
2019年11月16日
数字递增组件
摘要: 效果: 代码: <!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 执手听风吟
阅读(234)
评论(0)
推荐(0)
2019年11月14日
设置视频水平垂直居中显示在页面上
摘要: <!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 执手听风吟
阅读(6300)
评论(0)
推荐(1)
修改placeholder样式,兼容多个浏览器
摘要: /* Chrome、Safari 、Opera浏览器 */ input::-webkit-input-placeholder { color: #fff; } /* 火狐浏览器 */ input::-moz-placeholder { color: #fff; } /* IE浏览器 */ input
阅读全文
posted @ 2019-11-14 10:43 执手听风吟
阅读(476)
评论(0)
推荐(0)
一款还不错的日期插件layDate
摘要: 插件官网: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 执手听风吟
阅读(131)
评论(0)
推荐(0)
2019年11月12日
vue-cli打包后出现 “Uncaught SyntaxError: Unexpected token <”这个错
摘要: 说明:npm run dev 没有报错,可以正常运行;npm run build 过程中也没有报错,但是打包上线时index.html就报错了 解决方法(很简单):
阅读全文
posted @ 2019-11-12 18:14 执手听风吟
阅读(12947)
评论(0)
推荐(1)
上一页
1
···
3
4
5
6
7
8
下一页
公告