作用一样,但不换行。
\ 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 @@

-
+

-
+