摘要: 1、行内元素大致有b, big, i, small, tt,abbr, acronym, cite, code, dfn, em, kbd, strong, samp, var,a, bdo, br, img, map, object, q, script, span, sub, sup, inpu 阅读全文
posted @ 2019-03-19 09:22 聪明的笨小孩 阅读(3080) 评论(0) 推荐(0) 编辑
摘要: 一、水平居中 1.行内元素水平居中 利用 text-align: center 可以实现在块级元素内部的行内元素水平居中。此方法对inline、inline-block、inline-table和inline-flex元素水平居中都有效。 .parent{//在父容器设置 text-align:ce 阅读全文
posted @ 2019-03-19 09:11 聪明的笨小孩 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 什么是Blob?Blob 是什么? 这里说的是一种Javascript的对象类型。 oracle 中也有类似的栏位类型。 在 [JS进阶] HTML5 之文件操作(file)这一篇中用到了File对象,而实际上 file 对象只是 blob 对象的一个更具体的版本,blob 存储着大量的二进制数据, 阅读全文
posted @ 2019-03-14 16:41 聪明的笨小孩 阅读(26921) 评论(0) 推荐(0) 编辑
摘要: function base64(file) { var reader = new FileReader(); var pos = file.target.files[0].name.lastIndexOf("."); var type = file.target.files[0].name.subs 阅读全文
posted @ 2019-03-14 16:38 聪明的笨小孩 阅读(6933) 评论(0) 推荐(0) 编辑
摘要: 网页可见区域宽: document.body.clientWidth 网页可见区域高: document.body.clientHeight 网页可见区域宽: document.body.offsetWidth (包括边线的宽) 网页可见区域高: document.body.offsetHeight 阅读全文
posted @ 2019-01-18 13:57 聪明的笨小孩 阅读(42699) 评论(0) 推荐(1) 编辑
摘要: const prod = process.env.NODE_ENV !== "development"; const root = prod ? "/root" : "/root"; const timeout = 60000; import axios from "axios"; import * 阅读全文
posted @ 2019-01-09 11:06 聪明的笨小孩 阅读(2649) 评论(0) 推荐(0) 编辑
摘要: FormData 对象的使用 FormData 对象的使用 FormData 对象的使用 FormData对象用以将数据编译成键值对,以便用XMLHttpRequest来发送数据。其主要用于发送表单数据,但亦可用于发送带键数据(keyed data),而独立于表单使用。如果表单enctype属性设为 阅读全文
posted @ 2018-11-01 09:50 聪明的笨小孩 阅读(174) 评论(0) 推荐(0) 编辑
摘要: .header-drop-right-icon-bottom { transform: rotate(0deg); -ms-transform: rotate(0deg); /* IE 9 */ -moz-transform: rotate(0deg); /* Firefox */ -webkit- 阅读全文
posted @ 2018-10-25 09:22 聪明的笨小孩 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 一、语法 选择器{样式:值!import;} 二、说明 提升指定样式规则的应用优先权,即!important为开发者提供了一个增加样式权重的方法,让浏览器首选执行这个语句。 例如下面这个样式: div{ margin-left:20px!important; margin-left:40px;}如果 阅读全文
posted @ 2018-10-25 09:20 聪明的笨小孩 阅读(21845) 评论(0) 推荐(0) 编辑
摘要: 1.query方式传参和接收参数 注意:传参是this.$router,接收参数是this.$route,这里千万要看清了!!!this.$router 和this.$route有何区别?在控制台打印两者可以很明显的看出两者的一些区别: 1.$router为VueRouter实例,想要导航到不同UR 阅读全文
posted @ 2018-10-24 08:48 聪明的笨小孩 阅读(2367) 评论(0) 推荐(0) 编辑