HTML及CSS常用知识点复习

一、常用标签及对应的属性

1、标题标签:<h1 title="我是一个标题标签">标题</h1>【不同级标题h1~h6】

<body>
    <h1 title="我是一个标题标签">标题1</h1>
    <h2>标题2</h2>
    <h6>标题6</h6>
</body>

标题标签: 段落标签:

2、段落标签<p>段落</p>【有换行效果】

<body>
    <p>段落</p>
    <p>段落</p>
</body>

3、图片标签【单标签】:<img src="图片地址" alt="无法显示图片时候,显示的文字">

<body>
    <img src="https://p1.music.126.net/c-LMZbZbQLcMobnFciAl7w==/109951167683507100.jpg?imageView&quality=89" alt="图片显示失败">
    <img src="../imgs/3.png" alt="图片显示失败">
</body>

4、超链接(跳转链接):<a href="跳转地址" target="默认值,当前页面跳转"></a>

(1)target="_self":默认值,当前页面跳转

(2)target="_blank":新开一页跳转

5、换行标签(单标签):<br>

6、列表标签

(1)有序

<ol type="序号方式">
        <li></li>  //旧版生成多个li标签li*10,新版不可用了
</ol>

(2)无序

<ul>
        <li></li>
</ul>

<body>
    <ol type="a">
        <li>青椒肉丝</li>
        <li>皮蛋瘦肉</li>
        <li>紫菜蛋汤</li>
    </ol>
    <ul>
        <li>青椒肉丝</li>
        <li>皮蛋瘦肉</li>
        <li>紫菜蛋汤</li>
    </ul>
</body>

  

7、表格标签

(1)容器:<table></table>

属性:

①边框:border="1"

②单元格边沿到单元内容的距离:cellpadding(上下左右都变)

③单元格与单元格之间的距离:cellspacing

(2)表格标题<caption>最喜欢的音乐</caption>

(3)行:<tr></tr>

(4)单元格:<td></td>

①单元格宽度:width=""【注意:不用带单位,因为已经默认封装好的】

②单元格高度:height=""

③行合并:rowspan="2"

④列合并:colspan="2"

(5)表头(特殊的单元格):<th>歌曲</th>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        th{
            height: 40px;
            width: 300px;
        }
        td{
            height: 40px;
            width: 300px;
            font-weight: bold;
            padding-left: 10px;
        }
    </style>
</head>
<body>
    <table border="1" cellspacing="0">
        <tr>
            <th rowspan="2" width="300" height="80" >设备名称</th>
            <th rowspan="2" width="300">消防泵</th>
            <th width="300">设备参数</th>
            <th width="300"></th>
        </tr>
        <tr>
            <th>额定功率</th>
            <th ></th>
        </tr>
        <tr>
            <th>保养项目</th>
            <th colspan="3">保养完成情况</th>
        </tr>
        <tr>
            <td>擦洗,除污</td>
            <td colspan="3"></td>
        </tr>
        <tr>
            <td>长期不用时,定期盘动</td>
            <td colspan="3"></td>
        </tr>
        <tr>
            <td>测试,检查,紧固</td>
            <td colspan="3"></td>
        </tr>
        <tr>
            <td>检查或更换盘根填料</td>
            <td colspan="3"></td>
        </tr>
        <tr>
            <td>加0号黄油</td>
            <td colspan="3"></td>
        </tr>
        <tr>
            <td colspan="4" style="height: 150px;">备注:</td>
        </tr>
        <tr>
            <td colspan="4" style="padding-left: 30px;height: 80px;">保养作业完成后,保养人员或单位应如实填写保养完成情况,并作相应功能试验,遇有故障应及时填写《建筑消防设施故障维修记录表》(见表B.1)。
                <br>
                注:本表为样表,单位可根据制定的建筑消防设施维护保养计划表确定的保养内容分别制表。
            </td>
        </tr>
    </table>
</body>
</html>

8、表单标签

(1)表单容器:<form action="点击提交后触发的服务器地址"></form>

(2)输入框:<input type="各种属性">

①text:文本输入框

        提示文字:placeholder="请输入用户名"

        用户输入值存放的位置:name="userName"

②password:密码输入框

③submit:提交按钮

④reset:重置按钮

<body>
    <form action="">
        <input type="text" placeholder="请输入用户名" name="userName">
        <input type="password">
        <input type="submit">
        <input type="reset">
    </form>
</body>

 

⑤radio:单选框

        默认选中:checked

        禁止选中:disabled

⑥checkbox:多选框

        默认选中:checked

        禁止选中:disabled

⑦value

        <1>在单选输入框、多选输入框时,定义相关联的值(value="男"/value="0")

        <2>在文本、密码输入框时,表示默认值(定义初始值)

        <3>按钮,定义按钮文字

⑧file:文件上传(主要搭配后台地址)

<body>
    <form action="">
        男
        <input type="radio" name="sex" checked value="0">
        女
        <input type="radio" name="sex" value="1">
        运动
        <input type="checkbox" name="hobby" value="a">
        唱歌
        <input type="checkbox" name="hobby" value="b">
        跳舞
        <input type="checkbox" name="hobby" value="c">
        <input type="file" name="icon">
        <input type="submit">
    </form>
</body>

 

(3)下拉框

<select name="city"> <!-- 容器 -->
                <option value="0">福州</option> <!-- 具体选项,value具有默认值效果 -->
                <option value="2" selected>南京</option><!-- selected默认选中 -->
</select>

(4)多行文本<textarea name="detail" id="" cols="宽度" rows="高度"></textarea>

<body>
    <form action="">
        <select name="city"> <!-- 容器 -->
            <option value="0">福州</option> <!-- 具体选项,value具有默认值效果 -->
            <option value="1">厦门</option>
            <option value="2" selected>南京</option><!-- selected默认选中 -->
        </select>
        <textarea name="detail" id="" cols="30" rows="10"></textarea>
        <input type="submit">
    </form>
</body>

9、注意区别两个标签

(1)<div></div>为块级元素(会自动换行,可设置宽高)类似的标签还有div、p、h1

(2)<span></span>为行内元素(没有默认样式,主要修饰文字,不会自动换行,大小由内容自动撑开)类似的标签还有a标签

二、常用易忘易错的样式属性

1、positioin:定位

(1)相对定位:相对于当前的正常位置position: relative

(2)绝对定位:position: absolute

①absolute:父子关系(子元素进行定位,相对于其父级【设置了定位/没有设置而是找到浏览器】的绝对定位)
②fiexd:窗口定位(浏览器窗口)

(3)常见搭配

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 300px;
            height: 300px;
            background-color: skyblue;
            position: relative;
        }
        .box2{
            width: 100px;
            height: 100px;
            background-color: yellow;
            position: absolute;
            top: 50px;
            right: 20px;
        }
        .box3{
            width: 50px;
            height: 50px;
            background-color: red;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box2"></div>
        <div class="box3"></div>
    </div>
</body>
</html>

2、display:转换元素特性

(1)none:隐藏

(2)block:转成块级元素(自动换行h1,div,p)

(3)inline:转成内联元素(不会自动换行span,a)

(4)inline-block:行内块(转换成具有自己大小的且横向排列的元素)

(5)与float区别:display占位置,而float不占位置

(6)flex:默认横向布局【Flex的布局内容较多,小伙伴们可以去参考一下前面的文章有专门介绍flex布局🧐】

3、overflow:滚动条

(1)hidden:溢出隐藏【常用overflow: hidden; overflow-x: hidden; overflow-y: hidden; 】

(2)scroll:滚动条,不管有无溢出

(3)auto:自动识别需不需要滚动条

4、平移:transform:translate(x轴,y轴)

5、透明度

(1)opacity:全部包括子元素都透明

(2)rgba(r,g,b,a):元素不受影响

6、伪类

(1)鼠标的点击、悬浮

(2)标签的前面、后面

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 200px;
            height: 200px;
            background-color: skyblue;
            position: relative;
        }
        .box1{
            width: 100px;
            height: 100px;
            background-color: red;
        }
        .box2{
            width: 50px;
            height: 50px;
            background-color: greenyellow;
        }
        .box:hover .box1{
            background-color: black;
        }
        .box1:active+.box2{
            background-color: violet;
        }
        p::before{
            content: '某某:';
            color: yellow;
        }
        p::after{
            content: '完毕';
            color: aqua;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
    </div>
    <p>你好</p>
</body>
</html>

 三、,

1、加强该标签层级:z+index: 99;

2、常常需要用*设置整体样式(因为浏览器有默认margin没有等于0)

3、a标签去下划线:text-decoration: none; 【时刻注意a标签是行内标签】

4、ul的li标签去小黑点:list-style: none; 

5、图片定位background-position: -208px,0px;
重点注意:两值之间是逗号,不是空格,否则会出错

6、图片定位居中方法:
position: relative; 
top: 50%; 
transform: translateY(-50%); 

7、不写选择器的标签也可以设置样式运用孩子 li:firsti-child

8、边框的阴影:box-shadow

9、去掉input输入框默认点击后的边框样式:outline: none;

默认内容placeholder="请输入标题"

10、常用的点击手势cursor:pointer;

四、原神官网(通过三页,回顾前面所有知识点细节,小伙伴也可以自己去试着写🧐)

这里仅实现部分点击切换的效果,由于每个人的电脑分辨率不同,查看代码效果需要调试:右键检查切换成横屏适配,不然组件会有些移位,下面是发布具体效果视频

HTML实现原神官网的部分效果-CSDN直播

1、首页

(1)index.html

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- <title>Document</title> -->
    <link rel="stylesheet" href="./index.css">
</head>

<body>
    <!-- 第一张图 -->
    <div class="img1">
        <!-- 原神 -->
        <div class="img1-title"></div>
        <!-- 进入官网 -->
        <!-- <div class="img1-enter"> -->
        <a href="./index2.html" class="img1-enter"></a>
        <!-- </div> -->
        <!-- 适龄提示 -->
        <div class="img1-ages"></div>
        <!-- 播放模块 -->
        <div class="img1-broacast"></div>
        <!-- PC端下载 -->
        <div class="img1-pc"></div>
        <!-- 其他下载 -->
        <div class="img1-other"></div>
        <!-- 云原神下载 -->
        <div class="img1-cloud"></div>
    </div>
    <!-- 第二张图 -->
    <div class="img2">
        <!-- 内图 -->
        <div class="img2-img">
            <!-- 月章星句 -->
            <div class="img2-moon"></div>
            <!-- 机关棋谭 -->
            <div class="img2-gear"></div>
            <!-- 孤剑争逐 -->
            <div class="img2-sword"></div>
            <!-- 花影瑶庭 -->
            <div class="img2-flower"></div>
        </div>
    </div>
    <!-- 第三张图 -->
    <div class="img3">
        <!-- 内图 -->
        <div class="img3-img">
            <!-- 中文CV -->
            <div class="img3-chinese"></div>
            <!-- 日文CV -->
            <div class="img3-japan"></div>
            <!-- 人物头像 -->
            <div class="img3-human1"></div>
            <div class="img3-human2"></div>
            <div class="img3-human3"></div>
        </div>
    </div>
    <!-- 第四张图 -->
    <div class="img4">

        <!-- 内图 -->
        <div class="img4-img">
            <!-- 左键 -->
            <div class="img4-left"></div>
            <!-- 右键 -->
            <div class="img4-right"></div>
        </div>
    </div>
    <!-- 第五张图 -->
    <div class="img5">

        <!-- 内图 -->
        <div class="img5-img">
            <!-- 左 -->
            <div class="img5-left"></div>
            <!-- 右 -->
            <div class="img5-right"></div>
            <!-- 黑蛇骑士 -->
            <div class="img5-knight"></div>
        </div>
        <!-- 小树 -->
        <div class="img5-tree"></div>
    </div>
    <!-- 第六张图 -->
    <div class="img6">

        <!-- 内图 -->
        <div class="img6-img">
            <!-- 有香自西来 -->
            <div class="img6-fragrant"></div>
            <!-- 振晶的研究 -->
            <div class="img6-study"></div>
            <!-- 画外旅照 -->
            <div class="img6-paint"></div>
        </div>
    </div>
    <!-- 第七张图 -->
    <div class="img7">

        <!-- 内图 -->
        <div class="img7-img2">
            <!-- 左2 -->
            <div class="img7-left2">
                <!-- 左1 -->
                <div class="img7-left1"></div>
            </div>
            <!-- 右2 -->
            <div class="img7-right2">
                <!-- 右1 -->
                <div class="img7-right1"></div>
            </div>
            <!-- 内图 -->
            <div class="img7-img"></div>
            <!-- 排序 -->
            <div class="img7-box">
                <!-- 菱形 -->
                <div class="img7-rhombus"></div>
                <div class="img7-rhombus2"></div>
                <div class="img7-rhombus2"></div>
                <div class="img7-rhombus2"></div>
                <div class="img7-rhombus2"></div>
                <div class="img7-rhombus2"></div>
            </div>
            <!-- 微博、微信、哔哩、官方 -->
            <div class="img7-box2">
                <!-- 头像 -->
                <div class="img7-sculpture1"></div>
                <div class="img7-sculpture2"></div>
                <div class="img7-sculpture3"></div>
                <div class="img7-sculpture4"></div>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="body">
        <div class="background">
            <div class="bodyer"></div>
            <div class="body-box">
                <div class="body-left">
                    <!-- logo -->
                    <div class="body-logo1"></div>
                    <div class="body-axis"></div>
                    <div class="body-logo2"></div>
                </div>
                <div class="body-right">
                    <div class="body-text1">
                        <div class="text-box1">用户协议</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">隐私政策</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">儿童隐私政策</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">自律公约</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">家长监护工程</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">关于我们</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">联系我们</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">加入我们</div>
                    </div>
                    <div class="body-text2">
                        <div class="text2-box1">健康游戏忠告:抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</div>
                        <div class="text2-box2">
                            <div class="text2-box1">沪公网安备31010402001113号</div>
                            <div class="text2-box1">|</div>
                            <div class="text2-box1">增值电信业务经营许可证:沪B2-20190555</div>
                        </div>
                        <div class="text2-box3">
                            <div class="text2-box1">沪ICP备19018275号-4</div>
                            <div class="text2-box1">|</div>
                            <div class="text2-box1">沪网文〔2019〕3168-216号</div>
                            <div class="text2-box1">|</div>
                            <div class="text2-box1">国新出审【2019】2978号</div>
                        </div>
                        <div class="text2-box4">
                            <div class="text2-box1">互联网违法不良信息举报邮箱: tousu@mihoyo.com</div>
                            <div class="text2-box1">互联网违法不良信息举报电话: 021-60371750 (工作时间:每天10点 - 20点)</div>
                        </div>
                        <div class="text2-box1">亲爱的市民朋友,上海警方反诈劝阻电话“962110”系专门针对避免您财产被骗受损而设,请您一旦收到来电,立即接听</div>
                        <div class="text2-box1">未成年成长关爱热线:021-60371740</div>
                        <div class="text2-box5">
                            <div class="text2-box1">© 2020 米哈游版权所有 | 上海米哈游影铁科技有限公司</div>
                            <div class="text2-box1">客服电话:400-666-6312</div>
                        </div>
                    </div>
                    <div class="body-text3">
                        <div class="text3-box text3-box1"></div>
                        <div class="text3-box text3-box2"></div>
                        <div class="text3-box text3-box3"></div>
                        <div class="text3-box text3-box4"></div>
                        <div class="text3-box text3-box5"></div>
                        <div class="text3-box text3-box6"></div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</body>

</html>

(2)index.css

*{
    margin: 0;
    padding: 0;
    display: block;
    font-size: 14px;
    /* overflow-x: hidden; */
}
.img1{
    height:100vh;
    min-width: 1220px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 1.png');
    background-size: cover;
    background-position: center;
}
.img1-title{
    width: 150px;
    height: 104px;
    background-image: url('../imgs/Rectangle\ 5.png');
    /* transform: translate(96px,40px); */
    left: 96px;
    top: 40px;
    position: absolute;
}
.img1-enter{
    width: 156px;
    height: 80px;
    background-image: url('../imgs/Rectangle\ 12.png');
    /* transform: translate(1708px,56px); */
    right: 56px;
    top: 56px;
    position: absolute;
}
.img1-enter:hover{
    background-image: url('../imgs/Rectangle\ 278.png');
}
.img1-ages{
    width: 88px;
    height: 114px;
    background-image: url('../imgs/Rectangle\ 3.png');
    /* transform: translate(112px,557px); */
    left: 112px;
    bottom: 279px;
    position: absolute;
}
.img1-broacast{
    width: 136px;
    height: 124px;
    background-image: url('../imgs/Rectangle\ 11.png');
    /* transform: translate(730px,220px); */
    top: 220px;
    left: 730px;
    position: absolute;
}
.img1-broacast:hover{
    background-image: url('../imgs/Rectangle\ 11.2.png');
}
.img1-pc{
    width: 54px;
    height: 130px;
    background-image: url('../imgs/Rectangle\ 9.png');
    /* transform: translate(1190px,90px); */
    right: 676px;
    top: 90px;
    position: absolute;
}
.img1-other{
    width: 54px;
    height: 146px;
    background-image: url('../imgs/Rectangle\ 10.png');
    /* transform: translate(1190px,220px); */
    right: 676px;
    top: 220px;
    position: absolute;
}
.img1-other:hover{
    background-image: url('../imgs/Rectangle\ 10.2.png');
}
.img1-cloud{
    width: 53.72px;
    height: 192px;
    background-image: url('../imgs/image\ 5.png');
    /* transform: translate(1247px,117px); */
    right: 620px;
    top: 117px;
    position: absolute;
}
.img1-cloud:hover{
    background-image: url('../imgs/image\ 5.2.png');
}

/* 第二张图 */
.img2{
    height:100vh;
    min-width: 1220px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 13.png');
    background-size: cover;
    background-position: center;
}
.img2-img{
    width: 1220px;
    height: 692px;
    background-image: url('../imgs/Rectangle\ 14.png');
    /* transform: translate(350px,202px); */
    left: 350px;
    top: 202px;
    position: absolute;
}
.img2-moon{
    width: 92px;
    height: 240px;
    background-image: url('../imgs/Rectangle\ 279.png');
    /* transform: translate(488px,266px); */
    top: 64px;
    left: 138px;
    position: absolute;
}
.img2-moon:hover{
    background-image: url('../imgs/Rectangle\ 279.2.png');
}
.img2-gear{
    width: 92px;
    height: 240px;
    background-image: url('../imgs/Rectangle\ 280.png');
    /* transform: translate(1048px,266px); */
    top: 64px;
    right: 430px;
    position: absolute;
}
.img2-gear:hover{
    background-image: url('../imgs/Rectangle\ 280.2.png');
}
.img2-sword{
    width: 92px;
    height: 240px;
    background-image: url('../imgs/image\ 64.png');
    /* transform: translate(488px,610px); */
    left: 138px;
    bottom: 44px;
    position: absolute;
}
.img2-sword:hover{
    background-image: url('../imgs/image\ 64.2.png');
}
.img2-flower{
    width: 92px;
    height: 240px;
    background-image: url('../imgs/image\ 64(2).png');
    /* transform: translate(1048px,610px); */
    bottom: 44px;
    right: 430px;
    position: absolute;
}
.img2-flower:hover{
    background-image: url('../imgs/image\ 64(2).2.png');
}
.img3{
    height:100vh;
    min-width: 1220px;
    position: relative;
    background-image: url('../imgs/第三张大图背景图.png');
    background-size: cover;
    background-position: center;
}
.img3-img{
    width: 1072px;
    height: 680px;
    background-image: url('../imgs/Rectangle\ 15.png');
    /* transform: translate(366px,142px); */
    left: 366px;
    top: 142px;
    position: absolute;
}
.img3-chinese{
    width: 232px;
    height: 62px;
    background-image: url('../imgs/Rectangle\ 16.png');
    /* transform: translate(390px,689px); */
    left: 24px;
    bottom: 71px;
    position: absolute;
}
.img3-chinese:hover{
    background-image: url('../imgs/Rectangle\ 16.2.png');
}
.img3-japan{
    width: 232px;
    height: 62px;
    background-image: url('../imgs/Rectangle\ 17.png');
    /* transform: translate(390px,756px); */
    bottom: 4px;
    left: 24px;
    position: absolute;
}
.img3-japan:hover{
    background-image: url('../imgs/Rectangle\ 17.2.png');
}
.img3-human1{
    width: 102px;
    height: 102px;
    background-image: url('../imgs/image\ 9.png');
    /* transform: translate(1221px,819px); */
    bottom: -99px;
    right: 115px;
    position: absolute;
}
.img3-human2{
    width: 102px;
    height: 102px;
    background-image: url('../imgs/Rectangle\ 19.png');
    /* transform: translate(1322px,740px); */
    bottom: -20px;
    right: 14px;
    position: absolute;
}
.img3-human3{
    width: 102px;
    height: 102px;
    background-image: url('../imgs/Rectangle\ 20.png');
    /* transform: translate(1397px,633px); */
    bottom: 87px;
    right: -61px;
    position: absolute;
}
.img4{
    height:100vh;
    min-width: 1220px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 21.png');
    background-size: cover;
    background-position: center;
}
.img4-img{
    width: 1072px;
    height: 644px;
    background-image: url('../imgs/Rectangle\ 22.png');
    /* transform: translate(418px,242px); */
    left: 418px;
    top: 242px;
    position: absolute;
}
.img4-left{
    width: 190px;
    height: 120px;
    background-image: url('../imgs/Rectangle\ 23.png');
    /* transform: translate(252px,460px); */
    left: -166px;
    top: 218px;
    position: absolute;
}
.img4-left:hover{
    background-image: url('../imgs/Rectangle\ 23.2.png');
}
.img4-right{
    width: 190px;
    height: 120px;
    background-image: url('../imgs/Rectangle\ 24.png');
    /* transform: translate(1466px,460px); */
    right: -166px;
    top: 218px;
    position: absolute;
}
.img4-right:hover{
    background-image: url('../imgs/Rectangle\ 24.2.png');
}
.img5{
    height:100vh;
    min-width: 1220px;
    position: relative;
    background-image: url('../imgs/Frame\ 11.png');
    background-size: cover;
    background-position: center;
}
.img5-img{
    width: 756px;
    height: 710px;
    background-image: url('../imgs/Rectangle\ 28.png');
    /* transform: translate(584px,163px); */
    left: 584px;
    top: 163px;
    position: absolute;
}
.img5-left{
    width: 180px;
    height: 180px;
    background-image: url('../imgs/Rectangle\ 26.png');
    /* transform: translate(389px,427px); */
    left: -195px;
    top: 264px;
    position: absolute;
}
.img5-right{
    width: 180px;
    height: 180px;
    background-image: url('../imgs/Rectangle\ 27.png');
    /* transform: translate(1353px,428px); */
    top: 264px;
    right: -193px;
    position: absolute;
}
.img5-knight{
    width: 556px;
    height: 90px;
    background-image: url('../imgs/Rectangle\ 29.png');
    /* transform: translate(662px,735px); */
    left: 78px;
    bottom: 48px;
    position: absolute;
}
.img5-tree{
    width: 236px;
    height: 316px;
    background-image: url('../imgs/Rectangle\ 30.png');
    /* transform: translate(-129px,617px); */
    left: -107px;
    bottom: 17px;
    position: absolute;
}
.img6{
    height:100vh;
    min-width: 1220px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 31.png');
    background-size: cover;
    background-position: center;
}
.img6-img{
    width: 780px;
    height: 547px;
    background-image: url('../imgs/Rectangle\ 33.png');
    /* transform: translate(513px,252px); */
    left: 513px;
    top: 252px;
    position: absolute;
}
.img6-fragrant{
    width: 140px;
    height: 594px;
    background-image: url('../imgs/Rectangle\ 32.2.png');
    /* transform: translate(383px,258px); */
    top: 6px;
    left: -130px;
    position: absolute;
}
.img6-fragrant:hover{
    background-image: url('../imgs/Rectangle\ 32.png');
}
.img6-study{
    width: 140px;
    height: 594px;
    background-image: url('../imgs/Rectangle\ 34.png');
    /* transform: translate(1289px,258px); */
    top: 6px;
    right: -136px;
    position: absolute;
}
.img6-study:hover{
    background-image: url('../imgs/Rectangle\ 34.2.png');
}
.img6-paint{
    width: 140px;
    height: 594px;
    background-image: url('../imgs/Rectangle\ 35.png');
    /* transform: translate(1412px,258px); */
    top: 6px;
    right: -259px;
    position: absolute;
}
.img6-paint:hover{
    background-image: url('../imgs/Rectangle\ 35.2.png');
}
.img7{
    height:100vh;
    min-width: 1220px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 36.png');
    background-size: cover;
    background-position: center;
}
.img7-img{
    width: 854px;
    height: 476px;
    background-image: url('../imgs/Rectangle\ 38.png');
    /* transform: translate(532px,150px); */
    /* top: 150px; */
    left: 134px;
    position: absolute;
    
}
.img7-left1{
    width: 80px;
    height: 80px;
    background-image: url('../imgs/Rectangle\ 37.png');
    /* transform: translate(449px,368px); */
    left: 51px;
    bottom: 108px;
    position: absolute;
}
.img7-right1{
    width: 80px;
    height: 80px;
    background-image: url('../imgs/Rectangle\ 40.png');
    /* transform: translate(1394px,368px); */
    right: 45px;
    bottom: 102px;
    position: absolute;
}
.img7-left2{
    width: 236px;
    height: 342px;
    background-image: url('../imgs/Rectangle\ 39.png');
    /* transform: translate(398px,214px); */
    left: 0;
    top: 64px;
    position: absolute;
}
.img7-right2{
    width: 236px;
    height: 342px;
    background-image: url('../imgs/Rectangle\ 39.png');
    /* transform: translate(1285px,214px); */
    top: 64px;
    right: 0;
    position: absolute;
}
.img7-img2{
    width: 1123px;
    height: 690px;
    /* transform: translate(513px,252px); */
    left: 398px;
    top: 150px;
    position: absolute;
}
.img7-box{
    width: 128px;
    height: 18px;
    /* transform: translate(513px,252px); */
    left: 498px;
    bottom: 168px;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.img7-rhombus{
    width: 18px;
    height: 18px;
    background-image: url('../imgs/Rectangle\ 41.png');
    /* transform: translate(398px,214px); */
    /* position: absolute; */

}
.img7-rhombus2{
    width: 18px;
    height: 18px;
    background-image: url('../imgs/Rectangle\ 42.png');
    /* transform: translate(398px,214px); */
    /* position: absolute; */
}
.img7-box2{
    width: 698px;
    height: 112px;
    /* transform: translate(513px,252px); */
    left: 208px;
    bottom: 0;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.img7-sculpture1{
    width: 88px;
    height: 112px;
    background-image: url('../imgs/Rectangle\ 47.png');
}
.img7-sculpture2{
    width: 104px;
    height: 112px;
    background-image: url('../imgs/Rectangle\ 48.png');
}
.img7-sculpture3{
    width: 148px;
    height: 112px;
    background-image: url('../imgs/Rectangle\ 49.png');
}
.img7-sculpture4{
    width: 104px;
    height: 112px;
    background-image: url('../imgs/Rectangle\ 50.png');
}
.body{
    width: 100%;
    height:380px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
}
.background{
    width: 1920px;
    height: 100%;
    position: absolute;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.bodyer{
    width: 1920px;
    height: 380px;
    /* background-size: cover; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../imgs/底部栏底色.png');   
}
.body-logo1{
    width: 120px;
    height: 42px;
    background-image: url('../imgs/Rectangle\ 182.png');
    /* transform: translate(96px,40px); */
    left: 0;
    top: 23px;
    position: absolute;
}
.body-axis{
    width: 1px;
    height: 28px;
    background-image: url('../imgs/Rectangle\ 183.png');
    /* transform: translate(96px,40px); */
    left: 144px;
    top: 30px;
    position: absolute;
}
.body-logo2{
    width: 110px;
    height: 80px;
    background-image: url('../imgs/Rectangle\ 184.png');
    /* transform: translate(96px,40px); */
    right: 0;
    top: 0;
    position: absolute;
}
.body-text{
    width: 1123px;
    height: 690px;
    /* transform: translate(513px,252px); */
    left: 398px;
    top: 150px;
    position: absolute;
}
.body-box{
    width: 1199px;
    height: 268px;
    /* transform: translate(96px,40px); */
    left: 361px;
    top: 34px;
    position: absolute;
}
.body-left{
    width: 279px;
    height: 80px;
    /* transform: translate(96px,40px); */
    left: 0;
    top: 98px;
    position: absolute;
}
.body-right{
    width: 882px;
    height: 268px;
    /* transform: translate(96px,40px); */
    left: 317px;
    top: 0;
    position: absolute;
}
.body-text1{
    width: 651px;
    height: 16px;
    /* transform: translate(96px,40px); */
    left: 0;
    top: 0;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.text-box1{
    color: #fff;
    font-family: 'PingFang SC';
    font-weight: 400;
}
.body-text2{
    width: 100%;
    height: 158px;
    /* transform: translate(96px,40px); */
    left: 0;
    top: 50px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.text2-box1{
    color: #AAAAAA;
    font-family: 'PingFang SC';
    font-weight: 400;
}
.text2-box2{
    width: 500px;
    height: 16px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text2-box3{
    width: 545px;
    height: 16px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text2-box4{
    width: 824px;
    height: 14px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text2-box5{
    width: 548px;
    height: 14px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.body-text3{
    width: 766px;
    height: 46px;
    /* transform: translate(96px,40px); */
    left: 0;
    bottom: 0;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.text3-box{
    width: 116px;
    height: 46px;
    /* transform: translate(96px,40px); */
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text3-box1{
    background-image: url('../imgs/Rectangle\ 194.png');
}
.text3-box2{
    background-image: url('../imgs/Rectangle\ 195.png');
}
.text3-box3{
    background-image: url('../imgs/Rectangle\ 196.png');
}
.text3-box4{
    background-image: url('../imgs/Rectangle\ 197.png');
}
.text3-box5{
    background-image: url('../imgs/Rectangle\ 198.png');
}
.text3-box6{
    background-image: url('../imgs/Rectangle\ 199.png');
}

2、进入官网页(通过首页点击进入官网实现跳转)

(1)index2.html

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- <title>Document</title> -->
    <link rel="stylesheet" href="./index2.css">
</head>

<body>
    <div class="img1">
        <!-- 头部 -->
        <div class="img1-head">
            <!-- 音乐 -->
            <div class="img1-music"></div>
            <!-- logo -->
            <div class="img1-logo"></div>
            <!-- 选中 -->
            <!-- <div class="img1-select"></div> -->
            <!-- 标题 -->
            <div class="img1-title">
                <a href="./index2.html" class="img1-box1">首页</a>
                <a href="./index3.html" class="img1-box2">新闻</a>
                <!-- 选中 -->
                <div class="img1-select"></div>
                <!-- <div class="img1-box2">新闻</div> -->
                <div class="img1-box2">角色</div>
                <div class="img1-box2">世界</div>
                <div class="img1-box2">漫画</div>
                <div class="img1-box2">社区</div>
            </div>
            <!-- 成长关爱系统 -->
            <div class="img1-system">
                <div class="img1-text1">成长关爱系统</div>
                <div class="img1-sculpture2"></div>
            </div>
            <!-- 登录 -->
            <div class="img1-login">
                <div class="img1-text2">登录</div>
                <div class="img1-sculpture1"></div>
            </div>
        </div>
        <!-- 适龄提示 -->
        <div class="img1-ages"></div>
        <!-- 中间模块 -->
        <div class="img1-content">
            <!-- 播放键 -->
            <div class="img1-broadcast">
                <div class="broadcast-frame">
                    <div class="frame-content"></div>
                </div>
            </div>
            <!-- 二维码、下载 -->
            <div class="img1-center">
                <!-- 二维码 -->
                <div class="img1-code">
                    <div class="img1-sculpture3"></div>
                </div>
                <!-- 4个下载方式 -->
                <div class="img1-download">
                    <div class="img1-download1"></div>
                    <div class="img1-download2"></div>
                    <div class="img1-download3"></div>
                    <div class="img1-download4"></div>
                </div>
                <!-- 1个下载方式 -->
                <div class="img1-download5"></div>
            </div>
            <!-- 下 -->
            <div class="img1-down">
                <div class="img1-down1"></div>
                <div class="img1-down2"></div>
                <div class="img1-down3"></div>
            </div>
        </div>

    </div>
    <div class="img2">
        <div class="img2-head">
            <div class="img2-head1"></div>
            <div class="img2-head2">新闻资讯</div>
            <div class="img2-head3"></div>
        </div>
        <div class="img2-center">
            <div class="img2-img">
                <div class="img2-sort">
                    <div class="img2-round1"></div>
                    <div class="img2-round2"></div>
                    <div class="img2-round2"></div>
                    <div class="img2-round2"></div>
                </div>
            </div>
            <div class="img2-text">
                <div class="img2-text1">
                    <div class="img2-box1">
                        <div class="img2-zi1">最新</div>
                    </div>
                    <div class="img2-box2">
                        <div class="img2-zi2">新闻</div>
                    </div>
                    <div class="img2-box2">
                        <div class="img2-zi2">公告</div>
                    </div>
                    <div class="img2-box2">
                        <div class="img2-zi2">活动</div>
                    </div>
                </div>
                <div class="img2-text2">
                    <div class="img2-box3">
                        <div class="img2-box4">提瓦特美食札记 | "晚餐…"——迪卢克生日快乐!</div>
                        <div class="img2-box5">2022/04/30</div>
                    </div>
                    <div class="img2-box3">
                        <div class="img2-box4">迪卢克生日快乐 | 对我而言,你的意见向来重要。</div>
                        <div class="img2-box5">2022/04/30</div>
                    </div>
                    <div class="img2-box3">
                        <div class="img2-box4">《原神》「假日冒险?出发!」网页活动现已开启</div>
                        <div class="img2-box5">2022/04/29</div>
                    </div>
                    <div class="img2-box3">
                        <div class="img2-box4">《原神》2.7版本更新延期通知</div>
                        <div class="img2-box5">2022/04/29</div>
                    </div>
                    <div class="img2-box3">
                        <div class="img2-box4">《原神》「壁纸放送」</div>
                        <div class="img2-box5">2022/04/28</div>
                    </div>
                </div>
                <div class="img2-text3">
                    <div class="img2-add">+</div>
                    <div class="img2-text4">查看全部资讯</div>
                </div>
            </div>
        </div>
        <div class="img2-right">
            <div class="img2-right-content"></div>
        </div>
    </div>

    <div class="img3">
            <div class="img3-box">
                <div class="img3-content">
                    <div class="img3-text">蒙德城</div>
                    <div class="img3-bottom"></div>
                </div>
            </div>
    </div>
    <div class="img4">
        <div class="img4-box">
            <div class="img4-content">
                <div class="img4-text">璃月港</div>
                <div class="img4-bottom"></div>
            </div>
        </div>
    </div>
    <div class="img5">
        <div class="img5-box">
            <div class="img5-content">
                <div class="img5-text">稻妻城</div>
                <div class="img5-bottom"></div>
            </div>
        </div>
    </div>
    <div class="img6">敬请期待</div>
    <div class="img7">
        <div class="img7-content">
            <div class="img7-img1"></div>
            <div class="img7-img2"></div>
            <div class="img7-img3"></div>
            <div class="img7-img4"></div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="body">
        <div class="background">
            <div class="bodyer"></div>
            <div class="body-box">
                <div class="body-left">
                    <!-- logo -->
                    <div class="body-logo1"></div>
                    <div class="body-axis"></div>
                    <div class="body-logo2"></div>
                </div>
                <div class="body-right">
                    <div class="body-text1">
                        <div class="text-box1">用户协议</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">隐私政策</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">儿童隐私政策</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">自律公约</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">家长监护工程</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">关于我们</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">联系我们</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">加入我们</div>
                    </div>
                    <div class="body-text2">
                        <div class="text2-box1">健康游戏忠告:抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</div>
                        <div class="text2-box2">
                            <div class="text2-box1">沪公网安备31010402001113号</div>
                            <div class="text2-box1">|</div>
                            <div class="text2-box1">增值电信业务经营许可证:沪B2-20190555</div>
                        </div>
                        <div class="text2-box3">
                            <div class="text2-box1">沪ICP备19018275号-4</div>
                            <div class="text2-box1">|</div>
                            <div class="text2-box1">沪网文〔2019〕3168-216号</div>
                            <div class="text2-box1">|</div>
                            <div class="text2-box1">国新出审【2019】2978号</div>
                        </div>
                        <div class="text2-box4">
                            <div class="text2-box1">互联网违法不良信息举报邮箱: tousu@mihoyo.com</div>
                            <div class="text2-box1">互联网违法不良信息举报电话: 021-60371750 (工作时间:每天10点 - 20点)</div>
                        </div>
                        <div class="text2-box1">亲爱的市民朋友,上海警方反诈劝阻电话“962110”系专门针对避免您财产被骗受损而设,请您一旦收到来电,立即接听</div>
                        <div class="text2-box1">未成年成长关爱热线:021-60371740</div>
                        <div class="text2-box5">
                            <div class="text2-box1">© 2020 米哈游版权所有 | 上海米哈游影铁科技有限公司</div>
                            <div class="text2-box1">客服电话:400-666-6312</div>
                        </div>
                    </div>
                    <div class="body-text3">
                        <div class="text3-box text3-box1"></div>
                        <div class="text3-box text3-box2"></div>
                        <div class="text3-box text3-box3"></div>
                        <div class="text3-box text3-box4"></div>
                        <div class="text3-box text3-box5"></div>
                        <div class="text3-box text3-box6"></div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</body>

</html>

(2)index2.css

*{
    margin: 0;
    padding: 0;
    display: block;
    font-family: 'PingFang SC';
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
    /* overflow: hidden; */
}
.img1{
    height:100vh;
    min-width: 1200px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 156.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
}
.img1-head{
    min-width: 1200px;
    height: 66px;
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
}
.img1-music{
    width: 30px;
    height: 30px;
    background-image: url('../imgs/Rectangle\ 148.png');
    position: absolute;
    top: 16px;
    left: 70px;
}
.img1-logo{
    width: 140px;
    height: 66px;
    background-image: url('../imgs/Rectangle\ 149.png');
    position: absolute;
    top: 2px;
    left: 119px;
}
.img1-select{
    width: 40px;
    height: 2px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #69E0FF;
    transition: 300ms;
}
.img1-title{
    /* width: 542px; */
    height: 100%;
    position: absolute;
    /* top: 22px; */
    left: 311px;
    display: flex;
    line-height: 66px;
    /* justify-content: space-between; */
}
.img1-box1{
    font-size: 20px;
    font-family: 'PingFang SC';
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0px 4px 15px #5BDDFF;
    text-decoration: none;
    padding-right: 58px;
    box-sizing: border-box;
    /* position: absolute; */
}

.img1-box2{
    font-size: 20px;
    font-family: 'PingFang SC';
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    padding-right: 58px;
    box-sizing: border-box;
    /* position: absolute; */
}
.img1-box2:hover+.img1-select{
    left: 98px;
}
.img1-login{
    width: 83px;
    height: 100%;
    position: absolute;
    right: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.img1-sculpture1{
    width: 28px;
    height: 28px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 152.png');
}
.img1-text1{
    font-family: 'PingFang SC';
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    color: #C4C3C4;
}
.img1-system:hover .img1-text1{
    color: #ffffff;
}
.img1-text2{
    font-family: 'PingFang SC';
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    color: #C4C3C4;
}
.img1-login:hover .img1-text2:hover{
    color: #ffffff;
}
.img1-system{
    width: 149px;
    height: 100%;
    position: absolute;
    right: 170px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.img1-sculpture2{
    width: 28px;
    height: 28px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 151.png');
}
.img1-ages{
    width: 100px;
    height: 130px;
    background-image: url('../imgs/Rectangle\ 146.png');
    left: 20px;
    bottom: 20px;
    position: absolute;
}
.img1-content{
    width: 538px;
    height: 284px;
    position: absolute;
    left: 691px;
    bottom: 10px;
}
.img1-broadcast{
    width: 356px;
    height: 76px;
    background-image: url('../imgs/Rectangle\ 145.png');
    left: 91px;
    top: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}
.broadcast-frame{
    width: 48px;
    height: 48px;
    background-image: url('../imgs/Ellipse\ 7.png');
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}
.frame-content{
    width: 28px;
    height: 28px;
    background-image: url('../imgs/Rectangle\ 144.png');
    position: absolute;
}
.img1-center{
    width: 100%;
    height: 110px;
    position: absolute;
    top: 109px;
    left: 0;
    display: flex;
    justify-content: space-between;
}
.img1-code{
    width: 102px;
    height: 102px;
    background-image: url('../imgs/Rectangle\ 137.png');
    /* position: absolute; */
    display: flex;
    justify-content: center;
    align-items: center;
}
.img1-sculpture3{
    width: 26px;
    height: 26px;
    background-image: url('../imgs/Rectangle\ 139.png');
}
.img1-download{
    width: 320px;
    height: 105px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.img1-download1{
    width: 160px;
    height: 50px;
    background-image: url('../imgs/Rectangle\ 138.png');
}
.img1-download2{
    width: 160px;
    height: 50px;
    background-image: url('../imgs/Rectangle\ 141.png');
}
.img1-download3{
    width: 160px;
    height: 50px;
    background-image: url('../imgs/Rectangle\ 140.png');
}
.img1-download4{
    width: 160px;
    height: 50px;
    background-image: url('../imgs/Rectangle\ 142.png');
}
.img1-download5{
    width: 110px;
    height: 110px;
    background-image: url('../imgs/Rectangle\ 143.png');
}
.img1-down{
    width: 28px;
    height: 62px;
    left: 252px;
    bottom: 10px;
    position: absolute;
    display: flex;
    flex-direction: column;
}
.img1-down1{
    width: 28px;
    height: 28px;
    background-image: url('../imgs/Rectangle\ 153.png');
    animation-name: moveBox;
    animation-duration: 1.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-delay: 0ms;
}@keyframes moveBox{
    0%{
        opacity: 0;
    }
    50%{
        opacity: 0.5;
    }
    75%{
        opacity: 0.8;
    }
    100%{
        opacity: 0;
    }
}
.img1-down2{
    width: 28px;
    height: 28px;
    background-image: url('../imgs/Rectangle\ 153.png');
    animation-name: moveBox;
    animation-duration: 1.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-delay: 500ms;
}@keyframes moveBox{
    0%{
        opacity: 0;
    }
    50%{
        opacity: 0.5;
    }
    75%{
        opacity: 0.8;
    }
    100%{
        opacity: 0;
    }
}
.img1-down3{
    width: 28px;
    height: 28px;
    background-image: url('../imgs/Rectangle\ 153.png');
    animation-name: moveBox;
    animation-duration: 1.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-delay: 1s;
}@keyframes moveBox{
    0%{
        opacity: 0;
    }
    50%{
        opacity: 0.5;
    }
    75%{
        opacity: 0.8;
    }
    100%{
        opacity: 0;
    }
}

/* 第二张图 */
.img2{
    height:100vh;
    min-width: 1200px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 157.png');
    background-size: cover;
    background-position: center;
}
.img2-head{
    width: 912px;
    height: 52px;
    position: absolute;
    left: 504px;
    top: 146px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.img2-head1{
    width: 322px;
    height: 14px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 158.png');
    left: 0;
    top: 16px;
}
.img2-head2{
    font-family: 'PingFang SC';
    font-size: 52px;
    font-weight: 500;
    /* position: absolute; */
}
.img2-head3{
    width: 322px;
    height: 14px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 159.png');
    right: 0;
    top: 16px;
}
.img2-center{
    width: 1200px;
    height: 380px;
    position: absolute;
    left: 360px;
    top: 262px;
    display: flex;
}
.img2-img{
    width: 600px;
    height: 100%;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 245.png');
}
.img2-sort{
    width: 84px;
    height: 12px;
    position: absolute;
    left: 258px;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
}
.img2-round1{
    width: 12px;
    height: 12px;
    /* position: absolute; */
    background-image: url('../imgs/Ellipse\ 9.png');
}
.img2-round2{
    width: 12px;
    height: 12px;
    /* position: absolute; */
    background-image: url('../imgs/Ellipse\ 9.1.png');
}
.img2-text{
    width: 600px;
    height: 100%;
    position: relative;
}
.img2-text1{
    width: 552px;
    height: 34px;
    position: absolute;
    left: 24px;
    top: 41px;
    display: flex;
    border-bottom: 4px solid rgba(196, 196, 196, 0.2);
}
.img2-box1{
    width: 76px;
    height: 100%;
    /* position: absolute; */
    border-bottom: 4px solid #FFD49F;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}
.img2-zi1{
    color: #FFD49F;

}
.img2-box2{
    width: 76px;
    height: 100%;
    /* position: absolute; */
    color: #ffffff;
    /* border-bottom: 4px solid rgba(196, 196, 196, 0.2); */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}
.img2-zi2{
    color: #ffffff;

}
.img2-text2{
    width: 552px;
    height: 234px;
    position: absolute;
    left: 24px;
    top: 91px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.img2-box3{
    width: 552px;
    height: 32px;
    /* position: absolute; */
    border-bottom: 4px solid rgba(196, 196, 196, 0.2);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
}
.img2-box4{
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    /* position: absolute; */
}
.img2-box5{
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: #CFCBC9;
    /* position: absolute; */
}
.img2-text3{
    width: 146px;
    height: 24px;
    position: absolute;
    right: 24px;
    bottom: 19px;
    display: flex;
    /* flex-direction: column; */
    justify-content: space-between;
}
.img2-add{
    width: 24px;
    height: 24px;
    font-size: 14px;
    color: #F3D1A6;
    line-height: 24px;
    /* position: absolute; */
    text-align: center;
    background-image: url('../imgs/Rectangle\ 167.png');
}
.img2-text4{
    font-size: 18px;
    color: #CFCBC9;
    /* position: absolute; */
}
.img2-right{
    width: 30px;
    height: 52px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 168.png');
    top: 172px;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.img2-right-content{
    width: 10.24px;
    height: 18px;
    position: absolute;
    background-image: url('../imgs/Vector.png');
}


/* 第三张图 */
.img3{
    height:260px;
    min-width: 1920px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 169.png');
    /* background-size: cover; */
    background-position: center;
    /* display: flex;
    justify-content: center;
    align-items: center; */
}
.img3-content{
    width: 128px;
    height: 128px;
    position: absolute;
    background-image: url('../imgs/Vector\ 0.1.png');
    top: 66px;
    left: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.img3-text{
    font-size: 40px;
    /* position: absolute; */
}
.img3:hover{
    background-image: url('../imgs/Rectangle\ 169\ .1.png');
}
.img3:hover .img3-bottom{
    background-image: url('../imgs/Rectangle\ 281.png');
}
.img3:hover .img3-box{
    background-image: url('../imgs/Rectangle\ 282.png');
}
.img3-box{
    width: 1000px;
    height: 260px;
    position: absolute;
    right: 144px;
}
.img3-bottom{
    width: 210px;
    height: 10px;
    position: absolute;
    top: 90px;
}

.img4{
    height:260px;
    min-width: 1920px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 171.png');
    /* background-size: cover; */
    background-position: center;
    
    /* display: flex;
    justify-content: center;
    align-items: center; */
}
.img4-content{
    width: 128px;
    height: 128px;
    position: absolute;
    background-image: url('../imgs/Vector\ 0.1.png');
    top: 66px;
    left: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.img4-text{
    font-size: 40px;
    /* position: absolute; */
}
.img4:hover{
    background-image: url('../imgs/Rectangle\ 171.1.png');
}
.img4:hover .img4-bottom{
    background-image: url('../imgs/Rectangle\ 281.png');
}
.img4:hover .img4-box{
    background-image: url('../imgs/Rectangle\ 282\ .2.png');
}
.img4-box{
    width: 1000px;
    height: 260px;
    position: absolute;
    right: 144px;
}
.img4-bottom{
    width: 210px;
    height: 10px;
    position: absolute;
    top: 90px;
}

/* 第五张图 */
.img5{
    height:260px;
    min-width: 1920px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 172.png');
    /* background-size: cover; */
    background-position: center;
    
    /* display: flex;
    justify-content: center;
    align-items: center; */
}
.img5-content{
    width: 128px;
    height: 128px;
    position: absolute;
    background-image: url('../imgs/Vector\ 0.1.png');
    top: 66px;
    left: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.img5-text{
    font-size: 40px;
    /* position: absolute; */
}
.img5:hover{
    background-image: url('../imgs/Rectangle\ 172.1.png');
}
.img5:hover .img5-bottom{
    background-image: url('../imgs/Rectangle\ 281.png');
}
.img5:hover .img5-box{
    background-image: url('../imgs/Rectangle\ 282.3.png');
}
.img5-box{
    width: 1000px;
    height: 260px;
    position: absolute;
    right: 144px;
}
.img5-bottom{
    width: 210px;
    height: 10px;
    position: absolute;
    top: 90px;
}

/* 第六张图 */
.img6{
    height:260px;
    min-width: 1920px;
    position: relative;
    font-size: 38px;
    color: #CFCBC9;
    font-weight: 500;
    background-image: url('../imgs/Rectangle\ 173.png');
    /* background-size: cover; */
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 第七张图 */
.img7{
    height:52px;
    min-width: 1920px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 174.png');
    /* background-size: cover; */
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.img7-content{
    width: 236px;
    height: 32px;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.img7-img1{
    height: 32px;
    width: 32px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 175.png');
}
.img7-img2{
    height: 32px;
    width: 32px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 176.png');
}
.img7-img3{
    height: 32px;
    width: 32px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 177.png');
}
.img7-img4{
    height: 32px;
    width: 32px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 178.png');
}

.body{
    width: 100%;
    height:380px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
}
.background{
    width: 1920px;
    height: 100%;
    position: absolute;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.bodyer{
    width: 1920px;
    height: 380px;
    /* background-size: cover; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../imgs/底部栏底色.png');   
}
.body-logo1{
    width: 120px;
    height: 42px;
    background-image: url('../imgs/Rectangle\ 182.png');
    /* transform: translate(96px,40px); */
    left: 0;
    top: 23px;
    position: absolute;
}
.body-axis{
    width: 1px;
    height: 28px;
    background-image: url('../imgs/Rectangle\ 183.png');
    /* transform: translate(96px,40px); */
    left: 144px;
    top: 30px;
    position: absolute;
}
.body-logo2{
    width: 110px;
    height: 80px;
    background-image: url('../imgs/Rectangle\ 184.png');
    /* transform: translate(96px,40px); */
    right: 0;
    top: 0;
    position: absolute;
}
.body-text{
    width: 1123px;
    height: 690px;
    /* transform: translate(513px,252px); */
    left: 398px;
    top: 150px;
    position: absolute;
}
.body-box{
    width: 1199px;
    height: 268px;
    /* transform: translate(96px,40px); */
    left: 361px;
    top: 34px;
    position: absolute;
}
.body-left{
    width: 279px;
    height: 80px;
    /* transform: translate(96px,40px); */
    left: 0;
    top: 98px;
    position: absolute;
}
.body-right{
    width: 882px;
    height: 268px;
    /* transform: translate(96px,40px); */
    left: 317px;
    top: 0;
    position: absolute;
}
.body-text1{
    width: 651px;
    height: 16px;
    /* transform: translate(96px,40px); */
    left: 0;
    top: 0;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.text-box1{
    color: #fff;
    font-family: 'PingFang SC';
    font-weight: 400;
}
.body-text2{
    width: 100%;
    height: 158px;
    /* transform: translate(96px,40px); */
    left: 0;
    top: 50px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.text2-box1{
    color: #AAAAAA;
    font-family: 'PingFang SC';
    font-weight: 400;
}
.text2-box2{
    width: 500px;
    height: 16px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text2-box3{
    width: 545px;
    height: 16px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text2-box4{
    width: 824px;
    height: 14px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text2-box5{
    width: 548px;
    height: 14px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.body-text3{
    width: 766px;
    height: 46px;
    /* transform: translate(96px,40px); */
    left: 0;
    bottom: 0;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.text3-box{
    width: 116px;
    height: 46px;
    /* transform: translate(96px,40px); */
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text3-box1{
    background-image: url('../imgs/Rectangle\ 194.png');
}
.text3-box2{
    background-image: url('../imgs/Rectangle\ 195.png');
}
.text3-box3{
    background-image: url('../imgs/Rectangle\ 196.png');
}
.text3-box4{
    background-image: url('../imgs/Rectangle\ 197.png');
}
.text3-box5{
    background-image: url('../imgs/Rectangle\ 198.png');
}
.text3-box6{
    background-image: url('../imgs/Rectangle\ 199.png');
}
.img{
    background: rgba(0, 0, 0, 0.4);
}

3、新闻(点击官网页标题的首页或新闻有页面切换效果)

(1)index3.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- <title>Document</title> -->
    <link rel="stylesheet" href="./index3.css">
</head>
<body>
    <div class="img1">
        <!-- 头部 -->
        <div class="img1-head">
            <!-- 音乐 -->
            <div class="img1-music"></div>
            <!-- logo -->
            <div class="img1-logo"></div>
            <!-- 选中 -->
            <!-- <div class="img1-select"></div> -->
            <!-- 标题 -->
            <div class="img1-title">
                <a href="./index2.html" class="img1-box2">首页</a>
                <!-- 选中 -->
                <div class="img1-select"></div>
                <a href="./index3.html" class="img1-box1">新闻</a>
                
                <div class="img1-box2">角色</div>
                <div class="img1-box2">世界</div>
                <div class="img1-box2">漫画</div>
                <div class="img1-box2">社区</div>
            </div>
            <!-- 成长关爱系统 -->
            <div class="img1-system">
                <div class="img1-text1">成长关爱系统</div>
                <div class="img1-sculpture2"></div>
            </div>
            <!-- 登录 -->
            <div class="img1-login">
                <div class="img1-text2">登录</div>
                <div class="img1-sculpture1"></div>
            </div>
        </div>
        <!-- 中间内容 -->
            <div class="center-box1">
                <div class="center-img1"></div>
                <div class="center-text1">提瓦特美食札记 | "晚餐…"——迪卢克生日快乐!</div>
                <div class="center-box2">
                    <div class="center-text2">2022/04/30</div>
                    <div class="center-text3">新闻</div>
                </div>
            </div>
            <div class="center-box3">
                <div class="center-img2"></div>
                <div class="center-text1">迪卢克生日快乐|对我而言,你的意见向来重要。</div>
                <div class="center-box2">
                    <div class="center-text2">2022/04/30</div>
                    <div class="center-text3">新闻</div>
                </div>
            </div>
            <div class="center-box4">
                <div class="center-img3"></div>
                <div class="center-text1">《原神》「假日冒险?出发!」网页活动现已开启</div>
                <div class="center-box2">
                    <div class="center-text2">2022/04/30</div>
                    <div class="center-text3">新闻</div>
                </div>
            </div>
    </div>
    <div class="img2">
        <div class="img2-head">
            <div class="img2-text">
                <div class="img2-word">最新</div>
            </div>
            <div class="img2-text">
                <div class="img2-word">新闻</div>
            </div>
            <div class="img2-text">
                <div class="img2-word">公告</div>
            </div>
            <div class="img2-text">
                <div class="img2-word">活动</div>
            </div>
        </div>
        <div class="img2-img"></div>
        <div class="img2-body">
            <div class="body-content">
                <div class="body-img1"></div>
                <div class="img2-body-text1">提瓦特美食札记 | "晚餐…"——迪卢克生日快乐!</div>
                <div class="body-time">2022/04/30</div>
                <div class="img2-body-text2">新闻</div>
            </div>
            <div class="body-content2">
                <div class="body-img2"></div>
                <div class="img2-body-text1">迪卢克生日快乐|对我而言,你的意见向来重要。</div>
                <div class="body-time">2022/04/30</div>
                <div class="img2-body-text2">新闻</div>
            </div>
            <div class="body-content3">
                <div class="body-img3"></div>
                <div class="img2-body-text1">《原神》「假日冒险?出发!」网页活动现已开启</div>
                <div class="body-time">2022/04/29</div>
                <div class="img2-body-text2">新闻</div>
            </div>
            <div class="body-content4">
                <div class="body-img4"></div>
                <div class="img2-body-text1">《原神》2.7版本更新延期通知</div>
                <div class="body-time">2022/04/29</div>
                <div class="img2-body-text2">新闻</div>
            </div>
            <div class="body-content5">
                <div class="body-img5"></div>
                <div class="img2-body-text1">《原神》「壁纸放送」</div>
                <div class="body-time">2022/04/28</div>
                <div class="img2-body-text2">新闻</div>
            </div>
        </div>
        <div class="img2-foot">
            <div class="img2-foot-text">加载更多</div>
        </div>
        
    </div>
    <div class="img7">
        <div class="img7-content">
        <div class="img7-img1"></div>
        <div class="img7-img2"></div>
        <div class="img7-img3"></div>
        <div class="img7-img4"></div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="body">
        <div class="background">
            <div class="bodyer"></div>
            <div class="body-box">
                <div class="body-left">
                    <!-- logo -->
                    <div class="body-logo1"></div>
                    <div class="body-axis"></div>
                    <div class="body-logo2"></div>
                </div>
                <div class="body-right">
                    <div class="body-text1">
                        <div class="text-box1">用户协议</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">隐私政策</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">儿童隐私政策</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">自律公约</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">家长监护工程</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">关于我们</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">联系我们</div>
                        <div class="text-box1">|</div>
                        <div class="text-box1">加入我们</div>
                    </div>
                    <div class="body-text2">
                        <div class="text2-box1">健康游戏忠告:抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</div>
                        <div class="text2-box2">
                            <div class="text2-box1">沪公网安备31010402001113号</div>
                            <div class="text2-box1">|</div>
                            <div class="text2-box1">增值电信业务经营许可证:沪B2-20190555</div>
                        </div>
                        <div class="text2-box3">
                            <div class="text2-box1">沪ICP备19018275号-4</div>
                            <div class="text2-box1">|</div>
                            <div class="text2-box1">沪网文〔2019〕3168-216号</div>
                            <div class="text2-box1">|</div>
                            <div class="text2-box1">国新出审【2019】2978号</div>
                        </div>
                        <div class="text2-box4">
                            <div class="text2-box1">互联网违法不良信息举报邮箱: tousu@mihoyo.com</div>
                            <div class="text2-box1">互联网违法不良信息举报电话: 021-60371750 (工作时间:每天10点 - 20点)</div>
                        </div>
                        <div class="text2-box1">亲爱的市民朋友,上海警方反诈劝阻电话“962110”系专门针对避免您财产被骗受损而设,请您一旦收到来电,立即接听</div>
                        <div class="text2-box1">未成年成长关爱热线:021-60371740</div>
                        <div class="text2-box5">
                            <div class="text2-box1">© 2020 米哈游版权所有 | 上海米哈游影铁科技有限公司</div>
                            <div class="text2-box1">客服电话:400-666-6312</div>
                        </div>
                    </div>
                    <div class="body-text3">
                        <div class="text3-box text3-box1"></div>
                        <div class="text3-box text3-box2"></div>
                        <div class="text3-box text3-box3"></div>
                        <div class="text3-box text3-box4"></div>
                        <div class="text3-box text3-box5"></div>
                        <div class="text3-box text3-box6"></div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</body>
</html>

(2)index3.css

*{
    margin: 0;
    padding: 0;
    display: block;
    font-family: 'PingFang SC';
    color: #ffffff;
    font-weight: 400;
    font-size: 20px;
    /* overflow: hidden; */
}
.img1{
    height:700px;
    min-width: 1200px;
    position: relative;
    background-image: url('../imgs/image\ 63.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
}
.img1-head{
    min-width: 1200px;
    height: 66px;
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
}
.img1-music{
    width: 30px;
    height: 30px;
    background-image: url('../imgs/Rectangle\ 148.png');
    position: absolute;
    top: 16px;
    left: 70px;
}
.img1-logo{
    width: 140px;
    height: 66px;
    background-image: url('../imgs/Rectangle\ 149.png');
    position: absolute;
    top: 2px;
    left: 119px;
}
.img1-select{
    width: 40px;
    height: 2px;
    position: absolute;
    top: 0;
    left: 98px;
    background-color: #69E0FF;
    transition: 300ms;
}
.img1-title{
    /* width: 542px; */
    height: 100%;
    position: absolute;
    /* top: 22px; */
    left: 311px;
    display: flex;
    line-height: 66px;
    /* justify-content: space-between; */
}
.img1-box1{
    font-size: 20px;
    font-family: 'PingFang SC';
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0px 4px 15px #5BDDFF;
    text-decoration: none;
    padding-right: 58px;
    box-sizing: border-box;
    /* position: absolute; */
}

.img1-box2{
    font-size: 20px;
    font-family: 'PingFang SC';
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    padding-right: 58px;
    box-sizing: border-box;
    /* position: absolute; */
}
.img1-box2:hover+.img1-select{
    left: 0;
}
.img1-login{
    width: 83px;
    height: 100%;
    position: absolute;
    right: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.img1-sculpture1{
    width: 28px;
    height: 28px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 152.png');
}
.img1-text1{
    font-family: 'PingFang SC';
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    color: #C4C3C4;
}
.img1-system:hover .img1-text1{
    color: #ffffff;
}
.img1-text2{
    font-family: 'PingFang SC';
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    color: #C4C3C4;
}
.img1-login:hover .img1-text2:hover{
    color: #ffffff;
}
.img1-system{
    width: 149px;
    height: 100%;
    position: absolute;
    right: 170px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.img1-sculpture2{
    width: 28px;
    height: 28px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 151.png');
}

/* .img1-center{
    width: 1200px;
    height: 450px;
    position: absolute;
    top: 146px;
    left: 360px;
    display: flex;
    justify-content: space-between;
} */
.center-box1{
    width: 396px;
    height: 450px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 201.png');
    top: 146px;
    left: 360px;
}
.center-img1{
    width: 360px;
    height: 180px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 246.png');
    top: 20px;
    left: 18px;
}
.center-img1:hover{
    background-image: url('../imgs/Rectangle\ 246.1.png');
}
.center-text1{
    width: 360px;
    position: absolute;
    top: 220px;
    left: 18px;
    color: #ffffff;
}
.center-box2{
    width: 356px;
    height: 16px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    justify-content: space-between;
}
.center-text2{
    font-size: 16px;
    /* position: absolute; */
    color: #AAAAAA;
}
.center-text3{
    font-size: 16px;
    /* position: absolute; */
    color: #F1BA0D;
}
.center-box3{
    width: 396px;
    height: 450px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 201.png');
    top: 146px;
    left: 762px;
}
.center-box4{
    width: 396px;
    height: 450px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 201.png');
    top: 146px;
    left: 1164px;
}
.center-img2{
    width: 360px;
    height: 180px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 246.2.png');
    top: 20px;
    left: 18px;
}
.center-img3{
    width: 360px;
    height: 180px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 246.3.png');
    top: 20px;
    left: 18px;
}
.img2{
    height:1346px;
    min-width: 1200px;
    position: relative;
    background-color: #F0F0F0;
}
.img2-head{
    width: 684px;
    height: 36px;
    position: absolute;
    top: 40px;
    left: 360px;
    display: flex;
    justify-content: space-between;
}
.img2-text{
    width: 156px;
    height: 36px;
    background-image: url('../imgs/Rectangle\ 206.png');
    display: flex;
    justify-content: center;
    align-items: center;
}
.img2-word{
    color: #333333;
    font-size: 14px;
    /* line-height: 36px; */
}
.img2-text:hover{
    background-image: url('../imgs/Rectangle\ 206.1.png');
}
.img2-text:hover .img2-word{
    color: #F4D8A8;
}


.img2-body{
    width: 1920px;
    height: 928px;
    position: absolute;
    top: 116px;
    left: 360px;
    /* background-color: #F0F0F0; */
    /* display: flex;
    justify-content: space-between; */
}
.body-content{
    width: 1200px;
    height: 176px;
    position: absolute;
    background-color: #ffffff;
    /* top: 116px;
    left: 360px; */
}
.body-content:hover{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.body-img1{
    width: 266px;
    height: 140px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 212.png');
    top: 18px;
    left: 20px;
}
.img2-body-text1{
    top: 22px;
    left: 306px;
    position: absolute;
    font-size: 24px;
    color: #333333;
}
.body-time{
    bottom: 20px;
    right: 100px;
    position: absolute;
    font-size: 14px;
    color: #AAAAAA;
}
.img2-body-text2{
    bottom: 20px;
    right: 24px;
    position: absolute;
    font-size: 14px;
    color: #F1BA0D;
}
.body-content2{
    width: 1200px;
    height: 176px;
    position: absolute;
    background-color: #ffffff;
    top: 188px;
    /* left: 360px; */
}
.body-content2:hover{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.body-img2{
    width: 266px;
    height: 140px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 212.2.png');
    top: 18px;
    left: 20px;
}
.body-content3{
    width: 1200px;
    height: 176px;
    position: absolute;
    background-color: #ffffff;
    top: 376px;
    /* left: 360px; */
}
.body-content3:hover{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.body-img3{
    width: 266px;
    height: 140px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 212.3.png');
    top: 18px;
    left: 20px;
}
.body-content4{
    width: 1200px;
    height: 176px;
    position: absolute;
    background-color: #ffffff;
    top: 564px;
    /* left: 360px; */
}
.body-content4:hover{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.body-img4{
    width: 266px;
    height: 140px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 212.4.png');
    top: 18px;
    left: 20px;
}
.body-content5{
    width: 1200px;
    height: 176px;
    position: absolute;
    background-color: #ffffff;
    top: 752px;
    /* left: 360px; */
}
.body-content5:hover{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.body-img5{
    width: 266px;
    height: 140px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 212.5.png');
    top: 18px;
    left: 20px;
}
.img2-foot{
    width: 1200px;
    height: 38px;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 214.png');
    bottom: 224px;
    left: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.img2-foot-text{
    font-size: 18px;

}
.img2-img{
    width: 1920px;
    height: 540px;
    bottom: 0;
    position: absolute;
    background-image: url('../imgs/Rectangle\ 213.png');
}


.img7{
    height:52px;
    min-width: 1200px;
    position: relative;
    background-image: url('../imgs/Rectangle\ 174.png');
    /* background-size: cover; */
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.img7-content{
    width: 236px;
    height: 32px;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.img7-img1{
    height: 32px;
    width: 32px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 175.png');
}
.img7-img2{
    height: 32px;
    width: 32px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 176.png');
}
.img7-img3{
    height: 32px;
    width: 32px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 177.png');
}
.img7-img4{
    height: 32px;
    width: 32px;
    /* position: absolute; */
    background-image: url('../imgs/Rectangle\ 178.png');
}


.body{
    width: 100%;
    height:380px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
}
.background{
    width: 1920px;
    height: 100%;
    position: absolute;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.bodyer{
    width: 1920px;
    height: 380px;
    /* background-size: cover; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../imgs/底部栏底色.png');   
}
.body-logo1{
    width: 120px;
    height: 42px;
    background-image: url('../imgs/Rectangle\ 182.png');
    /* transform: translate(96px,40px); */
    left: 0;
    top: 23px;
    position: absolute;
}
.body-axis{
    width: 1px;
    height: 28px;
    background-image: url('../imgs/Rectangle\ 183.png');
    /* transform: translate(96px,40px); */
    left: 144px;
    top: 30px;
    position: absolute;
}
.body-logo2{
    width: 110px;
    height: 80px;
    background-image: url('../imgs/Rectangle\ 184.png');
    /* transform: translate(96px,40px); */
    right: 0;
    top: 0;
    position: absolute;
}
.body-text{
    width: 1123px;
    height: 690px;
    /* transform: translate(513px,252px); */
    left: 398px;
    top: 150px;
    position: absolute;
}
.body-box{
    width: 1199px;
    height: 268px;
    /* transform: translate(96px,40px); */
    left: 361px;
    top: 34px;
    position: absolute;
}
.body-left{
    width: 279px;
    height: 80px;
    /* transform: translate(96px,40px); */
    left: 0;
    top: 98px;
    position: absolute;
}
.body-right{
    width: 882px;
    height: 268px;
    /* transform: translate(96px,40px); */
    left: 317px;
    top: 0;
    position: absolute;
}
.body-text1{
    width: 651px;
    height: 16px;
    /* transform: translate(96px,40px); */
    left: 0;
    top: 0;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.text-box1{
    color: #fff;
    font-family: 'PingFang SC';
    font-weight: 400;
    font-size: 14px;
}
.body-text2{
    width: 100%;
    height: 158px;
    /* transform: translate(96px,40px); */
    left: 0;
    top: 50px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.text2-box1{
    color: #AAAAAA;
    font-family: 'PingFang SC';
    font-weight: 400;
    font-size: 14px;
}
.text2-box2{
    width: 500px;
    height: 16px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text2-box3{
    width: 545px;
    height: 16px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text2-box4{
    width: 824px;
    height: 14px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text2-box5{
    width: 548px;
    height: 14px;
    /* transform: translate(96px,40px); */
    left: 0;
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.body-text3{
    width: 766px;
    height: 46px;
    /* transform: translate(96px,40px); */
    left: 0;
    bottom: 0;
    position: absolute;
    display: flex;
    justify-content: space-between;
}
.text3-box{
    width: 116px;
    height: 46px;
    /* transform: translate(96px,40px); */
    /* position: absolute; */
    display: flex;
    justify-content: space-between;
}
.text3-box1{
    background-image: url('../imgs/Rectangle\ 194.png');
}
.text3-box2{
    background-image: url('../imgs/Rectangle\ 195.png');
}
.text3-box3{
    background-image: url('../imgs/Rectangle\ 196.png');
}
.text3-box4{
    background-image: url('../imgs/Rectangle\ 197.png');
}
.text3-box5{
    background-image: url('../imgs/Rectangle\ 198.png');
}
.text3-box6{
    background-image: url('../imgs/Rectangle\ 199.png');
}

  • 5
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

五秒法则

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值