用vscode仿制小米官网

news2024/10/5 15:22:34

html内容:

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./08-index.css">
    <link rel="stylesheet" href="../作业/download/font_4488556_kzk9knke5t/iconfont.css">
    
</head>
<body>
    <div class="header">
        <div class="content">
            <div class="header-left">
                <a href="#">小米官网</a>
                <span class="sep">|</span>
                <a href="#">小米商城</a>
                <span class="sep">|</span>
                <a href="#">小米澎湃OS</a>
                <span class="sep">|</span>
                <a href="#">loT</a>
                <span class="sep">|</span>
                <a href="#">云服务</a>
                <span class="sep">|</span>
                <a href="#">天星数科</a>
                <span class="sep">|</span>
                <a href="#">有品</a>
                <span class="sep">|</span>
                <a href="#">小爱开放平台</a>
                <span class="sep">|</span>
                <a href="#">资质证照</a>
                <span class="sep">|</span>
                <a href="#">协议规则</a>
                <span class="sep">|</span>
                <a href="#">下载app</a>
                <span class="sep">|</span>
                <a href="#">Select Location</a>
            </div>
            <div class="header-right">
                <a href="#"class="sep">登录</a>
                <span class="sep">|</span>
                <a href="#"class="sep">注册</a>
                <span class="sep">|</span>
                <a href="#"class="sep">信息通知</a>
                <span class="sep">|</span>
                    <span class="iconfont icon-gouwuchekong"></span>
                    <a href="#"class="shopping">购物车</a>
            </div>
        </div>
    </div>
    <div class="top-nav">
        <div class="content">
            <div class="top-nav-left">
               
            </div>
            <div class="top-nav-mid">
                <ul>
                    <li><a href="#">Xiaomi手机</a></li>
                    <li><a href="#">Redmi手机</a></li>
                    <li><a href="#">电视</a></li>
                    <li><a href="#">笔记本</a></li>
                    <li><a href="#">平板</a></li>
                    <li><a href="#">家电</a></li>
                    <li><a href="#">路由器</a></li>
                    <li><a href="#">服务中心</a></li>
                    <li><a href="#">社区</a></li>
                </ul>
            </div>
            <div class="top-nav-right">
                <form action="#">
                    <input type="text">
                    <span class="iconfont icon-sousuo"></span>
                 </form>
            </div>
        </div>
    </div>
    <div class="top-mid">
        <div class="content">
            <div class="top-mid-left">
                <ul>
                    <li><a href="#"class="title">手机      ></a></li>
                    <li><a href="#"class="title">电视      ></a></li>
                    <li><a href="#"class="title">家电      ></a></li>
                    <li><a href="#"class="title">笔记本平板 ></a></li>
                    <li><a href="#"class="title">出行 穿戴 ></a></li>
                    <li><a href="#"class="title">耳机 音箱 ></a></li>
                    <li><a href="#"class="title">健康 儿童 ></a></li>
                    <li><a href="#"class="title">生活 箱包 ></a></li>
                    <li><a href="#"class="title">智能路由器 ></a></li>
                    <li><a href="#"class="title">电源配件 ></a></li>
                </ul>
            </div>
            <div class="top-mid-right" style="transition-duration: 1s ;">
                <div class="top-mid-right-yuan" style="transition-duration: 800ms ;"></div>
                <div class="top-mid-right-yuan" style="transition-duration: 800ms ;"></div>
                <div class="top-mid-right-yuan" style="transition-duration: 800ms ;"></div>
                <div class="top-mid-right-yuan" style="transition-duration: 800ms ;"></div>
                <div class="top-mid-right-yuan" style="transition-duration: 800ms ;"></div>
                <div class="top-mid-right-yuan" style="transition-duration: 800ms ;"></div>
            </div>
            
        </div>    
    </div>
    <div class="top-bottom">
        <div class="content">
            <ul class="top-bottom-left">
                <li><a href="#"class="other"><img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/82abdba456e8caaea5848a0cddce03db.png?w=48&h=48"width="24px"height="24px">保障服务</a></li>
                <li><a href="#"class="other"><img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/806f2dfb2d27978e33fe3815d3851fa3.png?w=48&h=48"width="24px"height="24px">企业团购</a></li>
                <li><a href="#"class="other"><img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/eded6fa3b897a058163e2485532c4f10.png?w=48&h=48"width="24px"height="24px">F码通道</a></li>
                <li><a href="#"class="other"><img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/43a3195efa6a3cc7662efed8e7abe8bf.png?w=48&h=48"width="24px"height="24px">米粉卡</a></li>
                <li><a href="#"class="other"><img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/f4846bca6010a0deb9f85464409862af.png?w=48&h=48"width="24px"height="24px">以旧换新</a></li>
                <li><a href="#"class="other"><img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/9a76d7636b08e0988efb4fc384ae497b.png?w=48&h=48"width="24px"height="24px">话费充值</a></li>
            </ul>
            <div class="top-bottom-right1"></div>
            <div class="top-bottom-right2"></div>
            <div class="top-bottom-right3"></div>
        </div>
    </div>
</div>  
    
</body>
</html>

 css内容:

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
li{
    list-style: none;
}
a{
    text-decoration: none;
}
.content{
    width: 1226;
    margin: 0 auto;

}
/* header开始 */
.header{
    height: 40px;
    background-color: #333;
    color: #b0b0b0;
    font-size: 12px;
    overflow: hidden;
}
.header-left{
    width: 769px;
    height: 40px;

}
.header-right{
    width: 200px;
    height: 40px;

}
.header .content{
    display: flex;
    justify-content:space-evenly
}
.header .content a{
    font-size: 12px;
    color: #b0b0b0;
    line-height: 40px;
}
.header-left .sep{
    margin: 0 ;
}
.header .shopping{
    margin-left: 0px;

}
/* header结束 */
/* top-nav开始 */
.top-nav{
    height: 100px;
    overflow: hidden;

}
.top-nav .content {
    display: flex;
    justify-content: space-evenly;
}
.top-nav-left{
    background: url("https://cdn.cnbj1.fds.api.mi-img.com/mi.com-assets/shop/img/logo-mi2.png") no-repeat;
    width: 56px;
    height: 56px;
    background-size: 56px;
    margin-top: 20px;
}
.top-nav-mid ul{
    display: flex;
    justify-content: space-between;
    width: 700px;
    height: 100px;
    line-height: 100px;
}
.top-nav-mid ul a{
    color: #333;
}
.top-nav-mid ul a:hover{
    color: chocolate;
}
.top-nav-right {
    padding-top: 25px;
    width: 296px;
    height: 100px;
    line-height: 100px;
}
.top-nav-right form {
    position: relative;
    width: 296px;
    height: 50px;

}
.top-nav-right input{
    position: absolute;
    left: 0;
    top: 0;
    width: 245px;
    height: 50px;
    vertical-align: middle;
    outline: none;
    
}
.top-nav-right span{
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
    width: 52px;
    height: 50px;
    line-height: 50px;
    border: 1px solid black;
    text-align: center;
    font-size: 24px;
    
}
/* top-nav 结束*/
.a{
    height: 100px;
}
/* top-mid */
.top-mid{
    width: 1226px;
    height: 420px;
    margin: 0 auto;
}
.top-mid .content {
    display: flex;
    justify-content: space-evenly;
}
.top-mid-left{
    background-color: #B0B0B0;
    width: 234px;
    height: 420px;
    position: relative;
}
.top-mid .title{
    width: 234px;
    height: 42px;
    text-decoration:none;
    color: aliceblue;
    padding: 0px 0px 0px 30px;
    display: flex;
    flex-direction: column;
}
.top-mid-left ul a {
    color: #f0f8ff;
}
.top-mid-right{
    width: 992px;
    height: 420px;
    background-image: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/079f2eab16fdcb6132f7f58ffcf24b0a.jpg?thumb=1&w=1839&h=690&f=webp&q=90);
    background-image: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6ddaa05fc2385ded9081a56dfb20ae0d.jpg?thumb=1&w=1839&h=690&f=webp&q=90);
    background-image: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/aad6b7322cba5a5c13ee316610711fdc.jpg?thumb=1&w=1839&h=690&f=webp&q=90);
    background-image: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/802443805243d8505730c204a391bf0a.jpg?thumb=1&w=1839&h=690&f=webp&q=90);
    background-image: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/daa8668ce81bc05a5b8a6ef05072047d.jpg?w=2452&h=920);
    background-size: cover;

}
.top-mid-right-yuan{
    width: 10px;
    height: 10px;
    border-radius: 100px;
    display: inline-block;
    position: relative;
    left: 900px;
    top: 400px;
    background-color: #B0B0B0;
}
/* top-bottom */
.top-bottom{
    width: 1240px;
    height: 170px;
    margin: 0 auto;
}
.top-bottom .content {
    display: flex;
    justify-content: space-evenly;
}
.top-bottom-left{
    display: inline-block;
    background-color: #5f5750;
    width: 234px;
    height: 170px;
    font-display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-evenly;
}
/* .top-bottom ul{
    width: 76px;
    height: 82px;
    padding: 0 3px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-evenly;

} */
.top-bottom .other{
    width: 70px;
    height: 64px;
    color: aliceblue;
    padding: 18px 0px 0px ;
    list-style: none;
}
.top-bottom-right1{
    width: 316px;
    height: 170px;
    background-image: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6b67117bc92924fb2ff0e7ad2be86084.png?w=632&h=340);
    background-size: cover;
}
.top-bottom-right2{
    width: 316px;
    height: 170px;
    background-image: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/8dede2520f8dfff9c9b690af498cafe8.jpg?w=632&h=340);
    background-size: cover;
}
.top-bottom-right3{
    width: 316px;
    height: 170px;
    background-image: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/1ac77590368ff636d0b4f6a988133f55.png?w=632&h=340);
    background-size: cover;
}

 结果呈现:

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1574509.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

无线基本认识和配置

1、无线局域网 IEEE 802.11标准 根据应用范围分类 WPAN --- 个人无线网络 NFC、ZIgbee、Bluetooth WLAN --- 无线局域网 WiFi&#xff0c;使用到WPAN技术 WMAN --- 无线城域网 WiMax 802.16 WWAN --- 无线广域网 GSM、CDMA、WCDMA、LTE、5G、TD-SCDMA 2、…

PG 中的 MAXALIGN 及对齐分配内存(MemoryContextAllocAligned)

在PG源码中&#xff0c;MAXALIGN这个宏&#xff0c;返回最接近输入数字&#xff08;大于&#xff09;且能整除8的数&#xff0c;仅此而已。 常用于内存相关的计算&#xff0c;在PG代码中使用的相当广泛&#xff0c;为啥要用这个MAXALIGN&#xff1f;我估计是基于 “CPU访问对齐…

数据库同步方案Sqlserver

数据库同步方案探究 随着信息技术的迅猛发展&#xff0c;数据库在各个领域的应用日益广泛。而在分布式系统、云计算、大数据等场景下&#xff0c;数据库同步成为了一个至关重要的问题。数据库同步不仅关乎数据的完整性和一致性&#xff0c;还直接影响到系统的稳定性和性能。因…

加薪非要老总批?--责任链模式

1.1 老板&#xff0c;我要加薪 "我和刚进来的几个同事比较&#xff0c;我觉得我做得很好。公司每每分配的任务&#xff0c;我基本都可以快速完成。有一次&#xff0c;一段程序需要增加一个分支条件&#xff0c;我立刻想到利用反射、工厂等设计模式来处理&#xff0c;经理对…

移除元素 -- 力扣第27题 -- 暴力、双指针解法

题目 https://leetcode.cn/problems/remove-element/description/ 给你一个数组 nums 和一个值 val&#xff0c;你需要 原地 移除所有数值等于 val 的元素&#xff0c;并返回移除后数组的新长度。 不要使用额外的数组空间&#xff0c;你必须仅使用 O(1) 额外空间并原地修改输…

Maven--lib分离的打包方式

就是把lib包和source源码分开打包。优势就是&#xff0c;面对频繁更新的应用场景时&#xff0c;可以只更新源码包&#xff08;当然&#xff0c;前提是你的依赖没有增减&#xff09;。尤其是使用jenkins更新项目时&#xff0c;会省去很多时间吧&#xff1f; 不同项目的 lib之间不…

yolov9直接调用zed相机实现三维测距(python)

yolov9直接调用zed相机实现三维测距&#xff08;python&#xff09; 1. 相关配置2. 相关代码2.1 相机设置2.2 测距模块2.2 实验结果 相关链接 此项目直接调用zed相机实现三维测距&#xff0c;无需标定&#xff0c;相关内容如下&#xff1a; 1. yolov4直接调用zed相机实现三维测…

传统海外仓的管理模式有什么缺点?使用位像素海外仓系统的海外仓有什么优势?

传统的海外仓管理模式主要需要大量的人工操作和相对简单的信息化手段进行仓库的日常运营。因此&#xff0c;传统海外仓的运作比较依赖仓库员工的手工记录、核对和处理各种仓储和物流信息。 然而&#xff0c;传统海外仓管理模式通常存在一些缺点&#xff1a; 效率低下 因为需…

【数据结构】红黑树详解

目录 前言&#xff1a; 红黑树的概念&#xff1a; 红黑树的性质: 红黑树节点的定义&#xff1a; 红黑树的插入&#xff1a; 情况1&#xff1a;cur为红&#xff0c;p为红&#xff0c;g为黑&#xff0c;u存在且为红 情况2&#xff1a;cur为红&#xff0c;p为红&#xff0c…

数据同步工具datax安装配置与示例

文章目录 一、部署步骤1、jdk环境2、python环境步骤一&#xff1a;安装方式一&#xff1a;官网下载安装包方式二&#xff1a;brew命令安装 步骤二&#xff1a;配置环境变量步骤三&#xff1a;验证 3、maven环境&#xff08;可选&#xff09; 二、下载安装datax1、下载datax源码…

CLCD 流水线发布SpringBoot项目

目录 一、流水线 1.1 点击进入流水线 1.2 新建流水线 二、添加流水线 三、构建上传和构建镜像 ​编辑 四、Docker部署 一、流水线 1.1 点击进入流水线 1.2 新建流水线 二、添加流水线 三、构建上传和构建镜像 在构建上传里添加一个步骤&#xff1a;构建镜像&#xff0c;这…

【环境变量】基本概念理解 | 查看环境变量echo | PATH的应用和修改

目录 前言 基本概念&理解 注意的点 查看环境变量的方法 PATH环境变量 PTAH应用系统指令 PTAH应用用户程序 命令行参数的修改&#xff08;内存级&#xff09; 配置文件的修改 windows环境变量 大家天天开心&#x1f642; bash进程的流程。环境变量在系统指…

实战经验,公众号选题方向大盘点!

公众号是重要的内容传播平台&#xff0c;每个品牌都有自己的公众号&#xff0c;公众号选题选得好不好&#xff0c;直接决定你这篇文章是否会爆&#xff0c;公众号的选题决定了文章的阅读量和粉丝增长数量。一个好的选题带来的利益是多方面的。 选题是每个品牌和企业绞尽脑汁去…

background背景图参数边渐变CSS中创建背景图像的渐变效果

效果:可以看到灰色边边很难受,希望和背景融为一体 原理: 可以使用线性渐变&#xff08;linear-gradient&#xff09;或径向渐变&#xff08;radial-gradient&#xff09;。以下是一个使用线性渐变作为背景图像 代码: background: linear-gradient(to top, rgba(255,255,255,0)…

【Unity每日一记】如何从0到1将特效图集制作成一个特效

&#x1f468;‍&#x1f4bb;个人主页&#xff1a;元宇宙-秩沅 &#x1f468;‍&#x1f4bb; hallo 欢迎 点赞&#x1f44d; 收藏⭐ 留言&#x1f4dd; 加关注✅! &#x1f468;‍&#x1f4bb; 本文由 秩沅 原创 &#x1f468;‍&#x1f4bb; 收录于专栏&#xff1a;Uni…

Flink常见面试问题(附答案)

目录 基础篇1. 什么是Apache Flink&#xff1f;2. Flink与Hadoop的区别是什么&#xff1f;3. Flink中的事件时间&#xff08;Event Time&#xff09;和处理时间&#xff08;Processing Time&#xff09;有什么区别&#xff1f;4. Flink的容错机制是如何实现的&#xff1f;5. 什…

Myelsa的Python函数之旅(高铁直达)

一、函数的定义&#xff1a; 函数(Function)是一段可重复使用的代码块&#xff0c;用于执行特定的任务或计算&#xff0c;并可以接受输入参数和返回输出结果。函数可以将复杂的问题分解为更小的子问题&#xff0c;提高代码的可读性和可维护性。 二、函数的组成&#xff1a; 在…

设计模式总结-适配器模式

适配器模式 模式动机模式定义模式结构适配器模式实例与解析实例一&#xff1a;仿生机器人实例二&#xff1a;加密适配器 总结 模式动机 在软件开发中采用类似于电源适配器的设计和编码技巧被称为适配器模式。 通常情况下&#xff0c;客户端可以通过目标类的接口访问它所提供的…

Redis性能瓶颈与安全隐患排查验证纪实

在写《Redis怎样保证数据安全&#xff1f;》这篇文章&#xff0c;我是有对redis设置密码需要哪些步骤&#xff0c;设置密码的性能损耗有验证的。这就涉及到要对redis的配置做修改。 开始时我是打算采用直接使用redis配置文件的方式。所以我从redis官网下载了一个默认的配置文件…