diff --git "a/\351\202\223\351\233\250\346\271\230/20240909-htnl\346\216\222\347\211\210\350\241\250\347\255\276.md" "b/\351\202\223\351\233\250\346\271\230/20240909-htnl\346\216\222\347\211\210\350\241\250\347\255\276.md" index 3938a5afe4de7ba0b978b7c0172d2eeb5f50a3ca..284b515a6bbcad7b7eadf1f7cc5ab3525abd81a0 100644 --- "a/\351\202\223\351\233\250\346\271\230/20240909-htnl\346\216\222\347\211\210\350\241\250\347\255\276.md" +++ "b/\351\202\223\351\233\250\346\271\230/20240909-htnl\346\216\222\347\211\210\350\241\250\347\255\276.md" @@ -15,6 +15,6 @@ ### 5.换行标签
-### 6.
+### 6.

:可以把标签中的内容分割为独立的区块,必须独占一行。 - :和
作用一样,但不换行。 \ No newline at end of file +

:和

作用一样,但不换行。 \ No newline at end of file diff --git "a/\351\202\223\351\233\250\346\271\230/20240918-\350\241\250\346\240\274.md" "b/\351\202\223\351\233\250\346\271\230/20240918-\350\241\250\346\240\274.md" index 28ee8ce8f08db8ecddbc2fc33840002ac60fdb36..db61ee32eb2432c13d14078a47ce2685f4134d47 100644 --- "a/\351\202\223\351\233\250\346\271\230/20240918-\350\241\250\346\240\274.md" +++ "b/\351\202\223\351\233\250\346\271\230/20240918-\350\241\250\346\240\274.md" @@ -23,7 +23,7 @@ #### 单元格合并 - 跨行合并:rowspan="x" 跨列合并:colspan="y" + 跨行合并:rowp="x" 跨列合并:colp="y" ### CSS diff --git "a/\351\202\223\351\233\250\346\271\230/20241104-\345\223\215\345\272\224\345\274\217\345\270\203\345\261\200.md" "b/\351\202\223\351\233\250\346\271\230/20241104-\345\223\215\345\272\224\345\274\217\345\270\203\345\261\200.md" new file mode 100644 index 0000000000000000000000000000000000000000..59ba21cb296cd01aef317199260fe50110233c68 --- /dev/null +++ "b/\351\202\223\351\233\250\346\271\230/20241104-\345\223\215\345\272\224\345\274\217\345\270\203\345\261\200.md" @@ -0,0 +1,25 @@ +### 媒体查询 +1. 媒体查询是CSS的一个强大功能,能帮助我们根据不同的设备特性(比如屏幕尺寸)来调整网页的样式。 +### 媒体查询的基本结构 +```css +@media (条件) { + /* 在这里写CSS样式 */ +} +``` +### 常用的媒体特性 + - `width`:屏幕宽度 + - `height`:屏幕高度 + - `max-width`:屏幕最大宽度(小于或等于这个值) + - `min-width`:屏幕最小宽度(大于或等于这个值) + +```css +@media (max-width: 600px) { + body { + background-color: lightblue; + } +} +``` +### 注意事项 + - 媒体查询可以嵌套在CSS文件中,也可以作为单独的CSS文件被链接。 + - 媒体查询是向下兼容的,旧版浏览器会忽略媒体查询。 + - 使用媒体查询可以提高页面加载速度,因为它允许浏览器只加载必要的CSS。 \ No newline at end of file diff --git "a/\351\202\223\351\233\250\346\271\230/20241106-\346\220\255\345\273\272\351\235\231\346\200\201\347\275\221\347\253\231.md" "b/\351\202\223\351\233\250\346\271\230/20241106-\346\220\255\345\273\272\351\235\231\346\200\201\347\275\221\347\253\231.md" new file mode 100644 index 0000000000000000000000000000000000000000..5ccb28aa1d46e87767563d1843617bb09ab0e345 --- /dev/null +++ "b/\351\202\223\351\233\250\346\271\230/20241106-\346\220\255\345\273\272\351\235\231\346\200\201\347\275\221\347\253\231.md" @@ -0,0 +1,34 @@ +### 服务器 +1. 登录服务器 `-ssh root @hzhf.域名` +2. 登录后做的事情 + + 更新软件源 `-apt update` + + 更新操作系统&打补丁 `-apt upgrate -y` +## 搭建一个静态网站 +1. 安装nginx + `命令:yum install -y nginx` +2. 设置nginx开机启动和现在启动 + `命令:systemctl start nginx` +3. 查看nginx情况 + `命令:systemctl status nginx` +4. 在/var/下创建www文件夹,并在www文件下创建以域名为名称的文件夹 + ``` + mkdir /var/www + cd /var/www + mkdir 域名 + cd 域名 + ``` +5. 在XShell界面,点击绿色的像文件的那个图标,然后再弹出的界面将自己写的html文件上传到/var/www/域名 +6. 在/etc/nginx/conf.d/目录下,创建一个以域名为名称的配置文件 + `vim //etc/nginx/conf.d/hzhf.cn.conf` +7. 在上一步的基础上,按i进入插件模式,输入下面文本,按esc键进入命令模式,按冒号进入底层命令行模式后,输入wq保存退出,修改nginx网站配置后,输入`nginx -t`测试配置文件是否正确,正确返回`success`,不正确按照提示重新修改配置,正确之后执行`systemctl reload nginx`或`nginx -s reload`命令重新加载配置 + ``` + server{ + listen 80; --监听的端口 + server_name 域名; --监听的域名 + location / { + root /var/www/域名; --网站所在路径 + index i.html; --默认的首页文件 + } + } + ``` +8. 最后,在华为云控制台,进入ECS实例列表,然后点击进入实例,在左边栏最下点击安全组,点击列表中一行的配置规则,将80端口和443端口加入允许访问列表,并保存即可 \ No newline at end of file diff --git "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241017-\346\265\256\345\212\250.html" "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241017-\346\265\256\345\212\250.html" index 4c160aca0670a75751cde5115b47219b67448b3d..e716501121c6cbd5df26ea02ed93ad34c7703683 100644 --- "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241017-\346\265\256\345\212\250.html" +++ "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241017-\346\265\256\345\212\250.html" @@ -155,28 +155,28 @@
  • - | 通知公告 +

    | 通知公告

    - 更多 >> +

    更多 >>

  • - 哈哈哈哈哈哈哈哈哈 - 2014年9月26号 +

    哈哈哈哈哈哈哈哈哈

    +

    2014年9月26号

  • - 哈哈哈哈哈哈哈哈哈 - 2014年9月26号 +

    哈哈哈哈哈哈哈哈哈

    +

    2014年9月26号

  • - 哈哈哈哈哈哈哈哈哈 - 2014年9月26号 +

    哈哈哈哈哈哈哈哈哈

    +

    2014年9月26号

diff --git "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241024-\345\212\250\347\224\273/\346\211\213\350\241\250.html" "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241024-\345\212\250\347\224\273/\346\211\213\350\241\250.html" index 8627c6881a224e05d885f7a13c36c56f5c03c1f6..e16ce81ab8817d40320bdfcf8ea5719178a01ed1 100644 --- "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241024-\345\212\250\347\224\273/\346\211\213\350\241\250.html" +++ "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241024-\345\212\250\347\224\273/\346\211\213\350\241\250.html" @@ -36,7 +36,7 @@ margin-top: 30px; } - .c1 span { + .c1 p { position: absolute; left: 0; bottom: -80px; @@ -52,7 +52,7 @@ box-shadow: 0 0 15px #AAA; } - .c1:hover span { + .c1:hover p { bottom: 0; } @@ -65,11 +65,11 @@
- +

- +

diff --git "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/fish.html" "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/fish.html" new file mode 100644 index 0000000000000000000000000000000000000000..301bc2ddf338a26dd8b615d732b7829cfb6d8361 --- /dev/null +++ "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/fish.html" @@ -0,0 +1,137 @@ + + + + + + Document + + + +
+
+
+ + 热门视频 +
+
+ + 换一换 +
+
+
+ +
+

无论做什么鱼:最忌放盐

+

和料酒研制

+

1万评论

+

148万次观看司马南频道

+
+
+
+ +
+

无论做什么鱼:最忌放盐

+

和料酒研制

+

1万评论

+

148万次观看司马南频道

+
+
+
+ +
+

无论做什么鱼:最忌放盐

+

和料酒研制

+

1万评论

+

148万次观看司马南频道

+
+
+
+ +
+

无论做什么鱼:最忌放盐

+

和料酒研制

+

1万评论

+

148万次观看司马南频道

+
+
+
+ + \ No newline at end of file diff --git "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\344\272\254\344\270\234.html" "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\344\272\254\344\270\234.html" new file mode 100644 index 0000000000000000000000000000000000000000..5884e9872899a0dbdf19583215c5c9e5b6b1e780 --- /dev/null +++ "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\344\272\254\344\270\234.html" @@ -0,0 +1,366 @@ + + + + + + Document + + + +
+
+
+
+
打开京东APP,购物更轻松
+
+ +
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+

京东超市

+

京东超市

+

京东超市

+

京东超市

+

京东超市

+
+
+

京东超市

+

京东超市

+

京东超市

+

京东超市

+

京东超市

+
+
+
京东秒杀
+
18
+
+
更多秒杀
+
+
+
+

¥25

+

¥2568

+

¥28.8

+

¥19.7

+

¥420

+

¥42.9

+
+
+
+
+
+
+
    +
  • 首页
  • +
  • 分类
  • +
  • 京喜
  • +
  • 购物车
  • +
  • 未登录
  • +
+
+
+ + \ No newline at end of file diff --git "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\345\234\243\346\235\257\345\270\203\345\261\200.html" "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\345\234\243\346\235\257\345\270\203\345\261\200.html" new file mode 100644 index 0000000000000000000000000000000000000000..9e99fa5a890b1ed98554ad544e2937b36d93cd6f --- /dev/null +++ "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\345\234\243\346\235\257\345\270\203\345\261\200.html" @@ -0,0 +1,58 @@ + + + + + + Document + + + +
+
+
+
+
+ + \ No newline at end of file diff --git "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\345\270\203\345\261\200.html" "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\345\270\203\345\261\200.html" new file mode 100644 index 0000000000000000000000000000000000000000..8d73627b6301089032e6ff8be3db99ce091bf456 --- /dev/null +++ "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\345\270\203\345\261\200.html" @@ -0,0 +1,93 @@ + + + + + + Document + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\346\220\272\347\250\213.html" "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\346\220\272\347\250\213.html" new file mode 100644 index 0000000000000000000000000000000000000000..593c291b32b9fa82ccde68ad72630bf92c331164 --- /dev/null +++ "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\346\220\272\347\250\213.html" @@ -0,0 +1,365 @@ + + + + + + Document + + + +
+
+
+ +
+
+

我的

+
+
+ +
+
+

景点·玩乐

+
+
+

景点·玩乐

+
+
+

景点·玩乐

+
+
+

景点·玩乐

+
+
+

景点·玩乐

+
+
+ +
+
+
+ 海外酒店 + +
+
+ 海外酒店 +
+
+ 海外酒店 +
+
+
+
+ 特价酒店 +
+
+ 特价酒店 +
+
+
+
+
+
+ 海外酒店 + +
+
+ 海外酒店 +
+
+ 海外酒店 +
+
+
+
+ 特价酒店 +
+
+ 特价酒店 +
+
+
+
+
+
+ 海外酒店 + +
+
+ 海外酒店 +
+
+ 海外酒店 +
+
+
+
+ 特价酒店 +
+
+ 特价酒店 +
+
+
+ +
+
+

电话费

+
+
+

电话费

+
+
+

电话费

+
+
+

电话费

+
+
+

电话费

+
+
+
+
+

电话费

+
+
+

电话费

+
+
+

电话费

+
+
+

电话费

+
+
+

电话费

+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git "a/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\351\205\267\347\213\227.html" "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\351\205\267\347\213\227.html" new file mode 100644 index 0000000000000000000000000000000000000000..5086a0280e464171815a720f9212de686ec99f20 --- /dev/null +++ "b/\351\202\223\351\233\250\346\271\230/\344\275\234\344\270\232/20241104-flex2.0/\351\205\267\347\213\227.html" @@ -0,0 +1,73 @@ + + + + + + Document + + + +
+
+ +

2440.0万

+
+
+ +

2440.0万

+
+
+ +

2440.0万

+
+
+ +

2440.0万

+
+
+
+
+ +

2440.0万

+
+
+ +

2440.0万

+
+
+ +

2440.0万

+
+
+ +

2440.0万

+
+
+ + \ No newline at end of file