摘要: 阅读全文
posted @ 2021-02-03 21:05 Y字仇杀队 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-02-03 17:36 Y字仇杀队 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1.const定义的变量不可以修改,而且必须初始化。 1 const b = 2;//正确 2 // const b;//错误,必须初始化 3 console.log('函数外const定义b:' + b);//有输出值 4 // b = 5; 5 // console.log('函数外修改cons 阅读全文
posted @ 2021-02-03 17:11 Y字仇杀队 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-02-03 17:03 Y字仇杀队 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1、注意图片的路径问题。 2、背景图片要给盒子设置宽高才能插入背景图片。 3、input不能使用after和before伪元素。 4、如果两个盒子同级,不能经过第一个盒子第二个盒子发生变化:例如 box:hover box2 { color: red; } 但是可以使用js来触发同级盒子: var 阅读全文
posted @ 2021-02-02 21:49 Y字仇杀队 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 一、语法: x和y是移动的x轴和y轴的距离。 2、translate与定位实现块级盒子水平垂直居中: 阅读全文
posted @ 2021-02-01 21:40 Y字仇杀队 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 一、什么是? 二、如何做? 阅读全文
posted @ 2021-01-30 10:22 Y字仇杀队 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 一、步骤: 或者直接去别的公司官网下载:例如小米: https://www.mi.com/favicon.ico 二、自己制作图标: 1、切下一张png格式图片。 2、去转换网站在线转换,例如:比特虫:http://www.bitbug.net/ 3、将转换好的图片放到文件根目录下。 4、代码引入: 阅读全文
posted @ 2021-01-30 10:14 Y字仇杀队 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 一、 二、小米logo案例: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> < 阅读全文
posted @ 2021-01-29 16:00 Y字仇杀队 阅读(722) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-01-29 15:59 Y字仇杀队 阅读(26) 评论(0) 推荐(0) 编辑