06 2019 档案
摘要:1.DOCTYPE的作用 DOCTYPE是document type(文档类型)的缩写。<!DOCTYPE html>声明位于文档最前面,主要作用是告诉浏览器的解析器使用哪种HTML规范或者XHTML规范来解析页面。只有定义了页面的文档类型之后,页面里的标记和css才会生效。web浏览器使用文档类型
阅读全文
摘要:1.安装指定版本插件命令 npm install 插件名字@1.1.4(版本号) --save 或 yarn add 插件名字@1.1.4(版本号) --dev 2.Error:‘Link’ is not exported from 'react-route' 解决:‘react-router’4.
阅读全文
摘要:1.Error:The "injectBabelPlugin" helper has been deprecated as of v2.0. You can use customize-cra plugins in replacement - https://github.com/arackaf/c
阅读全文
摘要:转载自:https://blog.csdn.net/dayewandou/article/details/79175783 项目上传了,现在又写了一些内容想要跟新到项目上去,怎么更新呢? 首先进入项目的文件夹,右键打开cmd 1:git add . 提交到暂存区 2:git commit -m
阅读全文
摘要:1.在要上传的文件夹下单击右键,选择Git Bash here打开Git bash,设置全局用户名和邮箱 语法:git config --global user.name wandou 语法:git config --global user.email 123@163.com 2.初始化数据 语法:
阅读全文
摘要:1.Webstorm左上角File —— Settings—— Github, Auth Type改成password,在Login和Password中输入自己的github账户和密码,点Test测试是否连接成功 2.如图所示为连接成功 3.设置Git,在setting里找到Git,在Path to
阅读全文
摘要:1. box-shadow盒子阴影参数设置 2.相对路径问题 / 根目录 ./ 当前目录 ../ 父级目录 举个例子: 在main.css中要引入背景图片ptlogin.png,background:url("../images/ptlogin.png"),从main.css文件的父级目录开始查找i
阅读全文
摘要:className可以用来改变标签元素的css类选择器,从而改变元素的样式 举个栗子 一个简单的无序列表,点击button之前ul的样式为uhh1 点击button后,调用check函数中的className将ul的样式由uhh1改为uhh2
阅读全文
摘要:offsetWidth //返回盒模型的宽度(包括width+左右padding+左右border) <style> #div1 { width:200px; height:200px; border:2px solid red; padding:5px; margin:1px; backgroun
阅读全文