From dd6dd824a17f73fb36553e7e75d208fca6575d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98my76572?= Date: Tue, 1 Dec 2020 23:43:37 +0800 Subject: [PATCH 1/3] note --- ...ss\345\237\272\347\241\200\347\237\245\350\257\206.md" | 4 ++++ css/position.md | 1 + "css/\346\241\210\344\276\213.md" | 8 ++++++++ 3 files changed, 13 insertions(+) create mode 100644 "css/\346\241\210\344\276\213.md" diff --git "a/css/css\345\237\272\347\241\200\347\237\245\350\257\206.md" "b/css/css\345\237\272\347\241\200\347\237\245\350\257\206.md" index b1cefbb..4668568 100644 --- "a/css/css\345\237\272\347\241\200\347\237\245\350\257\206.md" +++ "b/css/css\345\237\272\347\241\200\347\237\245\350\257\206.md" @@ -4,3 +4,7 @@ ## float ## 盒子 ## 字体 +## 精灵图 +## 字体图标 + +## [案例](./案例.md) \ No newline at end of file diff --git a/css/position.md b/css/position.md index 34d76f6..7f1adcb 100644 --- a/css/position.md +++ b/css/position.md @@ -49,6 +49,7 @@ ```` + 1. 作用:固定盒子的位置 static relative absolute fixed 2. 边偏移: top bottom right left 3. > relative 相对于自身进行定位 ---------- 原来的位置仍然在,不脱离文档流 diff --git "a/css/\346\241\210\344\276\213.md" "b/css/\346\241\210\344\276\213.md" new file mode 100644 index 0000000..9143954 --- /dev/null +++ "b/css/\346\241\210\344\276\213.md" @@ -0,0 +1,8 @@ +1. css三角形 +```` +```` +2. 精灵图 + +3. 字体图标 + +4. \ No newline at end of file -- Gitee From 10f061d4a7680d3084514fef5e14edf582322db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98my76572?= Date: Tue, 15 Dec 2020 08:32:36 +0800 Subject: [PATCH 2/3] css --- css/css3.md | 2 + ...72\347\241\200\347\237\245\350\257\206.md" | 6 +-- css/position.md | 8 ++++ "css/\345\255\227\344\275\223.md" | 47 +++++++++++++++++++ "css/\347\247\273\345\212\250\347\253\257.md" | 1 + 5 files changed, 61 insertions(+), 3 deletions(-) create mode 100644 css/css3.md create mode 100644 "css/\345\255\227\344\275\223.md" create mode 100644 "css/\347\247\273\345\212\250\347\253\257.md" diff --git a/css/css3.md b/css/css3.md new file mode 100644 index 0000000..be7d921 --- /dev/null +++ b/css/css3.md @@ -0,0 +1,2 @@ +## 盒子 +1. box-sizing: border-box; //margin和padding不会撑大盒子了 \ No newline at end of file diff --git "a/css/css\345\237\272\347\241\200\347\237\245\350\257\206.md" "b/css/css\345\237\272\347\241\200\347\237\245\350\257\206.md" index 4668568..95ff22d 100644 --- "a/css/css\345\237\272\347\241\200\347\237\245\350\257\206.md" +++ "b/css/css\345\237\272\347\241\200\347\237\245\350\257\206.md" @@ -3,8 +3,8 @@ ## [position](./position.md) ## float ## 盒子 -## 字体 +## [字体](./字体.md) ## 精灵图 ## 字体图标 - -## [案例](./案例.md) \ No newline at end of file +## css3 +## [案例](./案例.md)n \ No newline at end of file diff --git a/css/position.md b/css/position.md index 7f1adcb..1895fcc 100644 --- a/css/position.md +++ b/css/position.md @@ -1,3 +1,11 @@ +#### 块元素 +### 元素分类 +| 分类 | 列举 | 宽 | 高 | 行高 | margin | padding | border | 占行 | +|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|行内元素|| 无宽 | 无高 | 有行高,但优先使用父块元素的行高 | 有margin-left margin-right,没有margin-top margin-bottom | padding的上下左右都有 | 有 | 共享一行 | +|块元素 || 宽 | 高 | 有行高 | margin的上下左右都有 | padding的上下左右都有 | 有 | 独占一行 | +|行内块元素 | img input td | 宽 | 高 | 无行高 | margin的上下左右都有 | padding的上下左右都有 | 有 | 共享一行 | + #### position |值| 作用 | 文档流 | 使用场景 | |:-:|:-:|:-:|:-:| diff --git "a/css/\345\255\227\344\275\223.md" "b/css/\345\255\227\344\275\223.md" new file mode 100644 index 0000000..8214805 --- /dev/null +++ "b/css/\345\255\227\344\275\223.md" @@ -0,0 +1,47 @@ +## 字体 +### 综合写法 +```` +/* 复合属性: 简写的方式 节约代码 */ +/* font: font-style font-weight font-size/line-height font-family; */ +/* font: italic 700 16px 'Microsoft yahei'; */ +font: 20px '黑体'; +```` +### 颜色 +```` +color :"" +```` + +### 对齐 +```` + text-align: right; + line_height: 盒子高度 +```` + +### 文本装饰 +```` +/* 下划线 */ +text-decoration: underline; +/* 删除线 */ +text-decoration: line-through; +/* 上划线 */ +text-decoration: overline; +/* 取消a默认的下划线 */ +text-decoration: none; +```` + +### 首行缩进 +```` +/* 如果此时写了2em 则是缩进当前元素 2个文字大小的距离 */ +text-indent: 2em; +```` + +### 背景 +```` + /* background-image: url(images/bg.jpg); +background-repeat: no-repeat; +background-position: center top; */ +/* 把背景图片固定住 */ +/* background-attachment: fixed; +background-color: black; */ +background: black url(images/bg.jpg) no-repeat fixed center top; +```` \ No newline at end of file diff --git "a/css/\347\247\273\345\212\250\347\253\257.md" "b/css/\347\247\273\345\212\250\347\253\257.md" new file mode 100644 index 0000000..8b13789 --- /dev/null +++ "b/css/\347\247\273\345\212\250\347\253\257.md" @@ -0,0 +1 @@ + -- Gitee From 1279ee735e9bea9d5eca6238396328cb54d52698 Mon Sep 17 00:00:00 2001 From: my76572 Date: Thu, 24 Jun 2021 21:10:25 +0800 Subject: [PATCH 3/3] string --- java_note/Java.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/java_note/Java.md b/java_note/Java.md index eb477aa..35d2449 100644 --- a/java_note/Java.md +++ b/java_note/Java.md @@ -152,7 +152,7 @@ public static void main(String[] args) { #### 2.3.2 StringBuilder 1. 线程不安全 - 2. + 2. ## 3. 集合 @@ -318,6 +318,17 @@ public static void main(String[] args) { #### 4.1 创建目录 +1. public boolean mkdir(); +2. public boolean mkdirs(); 创建父目录和子目录 +3. File.separator 路径分隔符 +4. createNewFile() 创建文件 +5. exists(); +6. canRead() canWrite() isHidden() +7. public String[] list() 得到数组 +8. public File[] listFiles() 得到文件对象 +9. isDirextory() +10. delete() + ````java public static void mkdirtest(){ File mydir = new File("./src/main/java/com/ssmtest/mkdirtest"); @@ -407,7 +418,13 @@ public static void writetest(){ ````java ```` +#### 4.7 流式I/O +- 字节流相关的类分别集成 抽象类 InputStream OutStream +- 字节数组输入/输出流 ByteArrayInputStream ByteArrayOutStream +- 文件输入/输出流 FileInputStream FileOutStream +- 过滤流 FilterInputStream() FilterOutStream() +- -- Gitee