前端学习配置教程一

配置这个都是很烦的啦!!这里总结记录一下哈!!!

前端学习配置环境一

一:VSCode 的安装(win的配置)

1.1 下载 VSC

打开下载链接: https://jomeswang.lanzous.com/iwWDzhz5eta

1.2 安装 VSC

之后一直下一步就好了

打开的初始页面如下:

二: VSCode 的配置

2.1 中文插件的安装 (Chinese (Simplified))

之后重启VSC 来重载配置

2.2 安装 Live Server 插件

2.3 配置 VSC 自动保存

三: VSC 配置的 检验

之后

将下面的代码复制进文件内

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="http://photo.jomeswang.top/20201102144734.png">
<title>SZUEA</title>
</head>

<style>
.center{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-20%, -70%);
}
.centerImg{
position: relative;;
width: 30%;
}
.centerText{
width: 30%;
text-align: center;
}
</style>

<body>

<div class="center">
<img class="centerImg" src="http://photo.jomeswang.top/20201102144734.png" alt="SZUEAIMG">
<div class="centerText">
SZUEA NB!!!
</div>
</div>

</body>
</html>

最终效果:

-------------本文结束 感谢您的阅读-------------