03 2020 档案
前端 | 20个常用的 CSS 技巧
摘要:黑白图像 这段代码会让你的彩色照片显示为黑白照片,是不是很酷? img.desaturate { filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: g 阅读全文
posted @ 2020-03-30 14:46 养乐 阅读(188) 评论(0) 推荐(0)
简单手写轮播图
摘要:<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale 阅读全文
posted @ 2020-03-23 17:21 养乐 阅读(291) 评论(0) 推荐(0)
【必看】58 道 Vue 常见面试题集锦,涵盖入门到精通,自测 Vue 掌握程度(中)
摘要:11.axios及安装? 答:请求后台资源的模块。npm install axios —save 装好, js中使用 import 进来,然后 .get 或 .post 。返回在 .then 函数中如果成功,失败则是在 .catch 函数中。 12.v-modal的使用 答:v-model 用于表单 阅读全文
posted @ 2020-03-17 19:12 养乐 阅读(218) 评论(0) 推荐(0)
【必看】58 道 Vue 常见面试题集锦,涵盖入门到精通,自测 Vue 掌握程度
摘要:1.vue优点? 答: 轻量级框架:只关注视图层,是一个构建数据的视图集合,大小只有几十 kb ; 简单易学:国人开发,中文文档,不存在语言障碍 ,易于理解和学习; 双向数据绑定:保留了 angular 的特点,在数据操作方面更为简单; 组件化:保留了 react 的优点,实现了 html 的封装和 阅读全文
posted @ 2020-03-12 13:51 养乐 阅读(249) 评论(0) 推荐(0)
css 伪元素
摘要:语法 伪元素的语法: selector:pseudo-element {property:value;} CSS类也可以使用伪元素: selector.class:pseudo-element {property:value;} :first-line 伪元素 "first-line" 伪元素用于向 阅读全文
posted @ 2020-03-08 15:40 养乐 阅读(127) 评论(0) 推荐(0)
jQuery 尺寸
摘要:jQuery 尺寸方法 jQuery 提供多个处理尺寸的重要方法: width() height() innerWidth() innerHeight() outerWidth() outerHeight() jQuery width() 和 height() 方法 width() 方法设置或返回元 阅读全文
posted @ 2020-03-03 18:25 养乐 阅读(231) 评论(0) 推荐(0)