网页作业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>
相关推荐
pas13628 分钟前
40-mini-vue 实现三种联合类型
前端·javascript·vue.js
摇滚侠36 分钟前
2 小时快速入门 ES6 基础视频教程
前端·ecmascript·es6
珑墨1 小时前
【Turbo】使用介绍
前端
军军君012 小时前
Three.js基础功能学习十三:太阳系实例上
前端·javascript·vue.js·学习·3d·前端框架·three
打小就很皮...3 小时前
Tesseract.js OCR 中文识别
前端·react.js·ocr
wuhen_n3 小时前
JavaScript内存管理与执行上下文
前端·javascript
Hi_kenyon4 小时前
理解vue中的ref
前端·javascript·vue.js
落霞的思绪5 小时前
配置React和React-dom为CDN引入
前端·react.js·前端框架
Hacker_Z&Q5 小时前
CSS 笔记2 (属性)
前端·css·笔记
Anastasiozzzz5 小时前
LeetCode Hot100 295. 数据流的中位数 MedianFinder
java·服务器·前端