网页作业9

html 复制代码
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>服务中心</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
        }

        .container {
            width: 1000px;
            margin: 0 auto;
            position: relative;
        }

        .top {
            height: 120px;
            background: url('logo.jpg') no-repeat center center / cover;
        }

        .menu {
            height: 60px;
            position: relative;
        }

        .menu img {
            float: right;
            margin: 5px 10px;
        }

        .left {
            width: 200px;
            height: 600px;
            float: left;
            background: 
                url('left-a.jpg') no-repeat left top / 200px 300px,
                url('left-b.jpg') no-repeat left bottom / 200px 300px;
        }

        .concent {
            width: 800px;
            height: 600px;
            float: left;
            position: relative;
        }

        .concent > center {
            text-align: center;
            font-weight: bold;
            font-size: 24px;
            margin-bottom: 20px;
        }

        .concent > h3 {
            font-weight: bold;
            font-size: 20px;
            margin-top: 20px;
        }

        .concent > p {
            margin-top: 10px;
        }

        .A, .B, .C {
            width: 264px;
            height: 248px;
            border: 1px solid black;
            text-align: center;
            font-weight: bold;
            font-size: 30px;
            background-color: white;
            position: absolute;
            top: 350px;
        }

        .A {
            left: 0;
        }

        .B {
            left: 270px;
        }

        .C {
            left: 540px;
        }

        .A img, .B img, .C img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .footer {
            width: 1000px;
            height: 60px;
            position: absolute;
            bottom: 63px;
            left: 6px;
            background: url('footer.jpg') no-repeat center center / contain;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="top"></div>
        <div class="menu">
            <img src="menu-e.jpg" alt="Menu E">
            <img src="menu-d.jpg" alt="Menu D">
            <img src="menu-c.jpg" alt="Menu C">
            <img src="menu-b.jpg" alt="Menu B">
            <img src="menu-a.jpg" alt="Menu A">
        </div>
        <div class="left"></div>
        <div class="concent">
            <center>常见问题汇总</center>
            <h3>一, 如何联系客服</h3>
            <p>最近很多用户到咨询中心提问,为什么客服不在线,客服在线不回复,如何联系客服等问题,您可以联系下面的QQ了解详细解答:(QQ)123000000</p>
            <h3>二, 我的订单为什么一直在交易中?</h3>
            <p>很多客户在交易过程中会有这样的困惑:为什么订单一直在交易中?如果您的订单一直在交易中,我们建议你可以联系客服了解原因,您可以联系下面的QQ了解详细解答:(QQ)123000000</p>
            <div class="A"><img src="right-a.jpg" alt="Right A"></div>
            <div class="B"><img src="right-b.jpg" alt="Right B"></div>
            <div class="C"><img src="right-c.jpg" alt="Right C"></div>
        </div>
    </div>
    <div class="footer"></div>
</body>
</html>
html 复制代码
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>服务中心</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
        }

        .container {
            width: 1000px;
            margin: 0 auto;
            position: relative;
        }

        .top {
            height: 120px;
            background: url('logo.jpg') no-repeat center center / cover;
        }

        .menu {
            height: 60px;
            position: relative;
        }

        .menu img {
            float: right;
            margin: 5px 10px;
        }

        .left {
            width: 200px;
            height: 600px;
            float: left;
            background: 
                url('left-a.jpg') no-repeat left top / 200px 300px,
                url('left-b.jpg') no-repeat left bottom / 200px 300px;
        }

        .concent {
            width: 800px;
            height: 600px;
            float: left;
            position: relative;
        }

        .concent > center {
            text-align: center;
            font-weight: bold;
            font-size: 24px;
            margin-bottom: 20px;
        }

        .concent > h3 {
            font-weight: bold;
            font-size: 20px;
            margin-top: 20px;
        }

        .concent > p {
            margin-top: 10px;
        }

        .A, .B, .C {
            width: 264px;
            height: 248px;
            border: 1px solid black;
            text-align: center;
            font-weight: bold;
            font-size: 30px;
            background-color: white;
            position: absolute;
            top: 350px;
        }

        .A {
            left: 0;
        }

        .B {
            left: 270px;
        }

        .C {
            left: 540px;
        }

        .A img, .B img, .C img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .footer {
            width: 1000px;
            height: 60px;
            position: absolute;
            bottom: 63px;
            left: 6px;
            background: url('footer.jpg') no-repeat center center / contain;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="top"></div>
        <div class="menu">
            <img src="menu-e.jpg" alt="Menu E">
            <img src="menu-d.jpg" alt="Menu D">
            <img src="menu-c.jpg" alt="Menu C">
            <img src="menu-b.jpg" alt="Menu B">
            <img src="menu-a.jpg" alt="Menu A">
        </div>
        <div class="left"></div>
        <div class="concent">
            <center>常见问题汇总</center>
            <h3>一, 如何联系客服</h3>
            <p>最近很多用户到咨询中心提问,为什么客服不在线,客服在线不回复,如何联系客服等问题,您可以联系下面的QQ了解详细解答:(QQ)123000000</p>
            <h3>二, 我的订单为什么一直在交易中?</h3>
            <p>很多客户在交易过程中会有这样的困惑:为什么订单一直在交易中?如果您的订单一直在交易中,我们建议你可以联系客服了解原因,您可以联系下面的QQ了解详细解答:(QQ)123000000</p>
            <div class="A"><img src="right-a.jpg" alt="Right A"></div>
            <div class="B"><img src="right-b.jpg" alt="Right B"></div>
            <div class="C"><img src="right-c.jpg" alt="Right C"></div>
        </div>
    </div>
    <div class="footer"></div>
</body>
</html>
相关推荐
来自星星的坤1 小时前
【Vue 3 + Vue Router 4】如何正确重置路由实例(resetRouter)——避免“VueRouter is not defined”错误
前端·javascript·vue.js
香蕉可乐荷包蛋5 小时前
浅入ES5、ES6(ES2015)、ES2023(ES14)版本对比,及使用建议---ES6就够用(个人觉得)
前端·javascript·es6
未来之窗软件服务6 小时前
资源管理器必要性———仙盟创梦IDE
前端·javascript·ide·仙盟创梦ide
liuyang___7 小时前
第一次经历项目上线
前端·typescript
西哥写代码7 小时前
基于cornerstone3D的dicom影像浏览器 第十八章 自定义序列自动播放条
前端·javascript·vue
清风细雨_林木木7 小时前
Vue 中生成源码映射文件,配置 map
前端·javascript·vue.js
FungLeo7 小时前
node 后端和浏览器前端,有关 RSA 非对称加密的完整实践, 前后端匹配的代码演示
前端·非对称加密·rsa 加密·node 后端
不灭锦鲤8 小时前
xss-labs靶场第11-14关基础详解
前端·xss
不是吧这都有重名8 小时前
利用systemd启动部署在服务器上的web应用
运维·服务器·前端
霸王蟹8 小时前
React中巧妙使用异步组件Suspense优化页面性能。
前端·笔记·学习·react.js·前端框架