用vscode仿制小米官网

这篇具有很好参考价值的文章主要介绍了用vscode仿制小米官网。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

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;
}

 结果呈现:

用vscode仿制小米官网,vscode,ide,编辑器文章来源地址https://www.toymoban.com/news/detail-853427.html

到了这里,关于用vscode仿制小米官网的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • IDE /Qt Creator 文本编辑器之文件编码设置

    在 Qt Creator 工具 - 选项 - 文本编辑器 - 行为选项卡中,存在一个叫作 “文件编码” 的配置项。其默认配置如下, 我是栽了不少坑之后,才理解到它的用途和作用方式的。这是一个有用的配置项,尤其是在使用 Qt Creator + MSVC 组成的集成开发环境时。我是在整理 《IDE/warning:

    2024年02月13日
    浏览(49)
  • 轻量级 IDE & 文本编辑器 Geany 发布 2.0

    导读 Geany 是功能强大、稳定、轻量的开发者专用文本编辑器,支持 Linux、Windows 和 macOS,内置支持 50 多种编程语言。 2005 年Geany 发布首个版本 0.1。上周四刚好是 Geany 诞生 18 周年纪念日,官方发布了 2.0 正式版以表庆祝。 下载地址:https://www.geany.org/download/releases/ Geany 2.0 主

    2024年02月07日
    浏览(36)
  • IDE + ChatGPT,这款编辑器真的做到可以自动写代码了

    介绍 Cursor 是集成了 GPT-4 的 IDE 工具,目前免费并且无需 API Key,支持 Win、Mac、Linux 平台,可以按要求生成代码,或者让 AI 帮助优化代码,分析代码。Cursor目前已经集成了openai的GPT-4,它或将彻底改变我们写代码的方式。 以前程序员被调侃是“CV”工程师,以后我们恐怕要成

    2023年04月25日
    浏览(43)
  • 【Linux应用部署篇】在CSDN云IDE平台部署Etherpad文档编辑器

    官网网址:CSDN开发云IDE平台 CSDN云IDE平台是一个在线的集成开发环境,可用于编写、测试和部署代码。CSDN云IDE平台支持多种语言和框架,包括Java、Python、Node.js等,提供了丰富的编辑器、调试器和版本管理工具,帮助开发者快速创建和部署应用程序。CSDN云IDE平台在云端运行,

    2024年02月11日
    浏览(43)
  • 从0开始学C++ 第四课:常用C++编辑器和集成开发环境(IDE)的使用

    第四课:常用C++编辑器和集成开发环境(IDE)的使用 在这一课中,我们将了解一些流行的C++编辑器和集成开发环境(IDE),它们可以简化C++的编写、编译和调试过程。我们将介绍三种流行的IDE:Visual Studio Code、Eclipse和CLion,并指导如何设置一个简单的C++项目。 目标 了解不同

    2024年01月22日
    浏览(38)
  • Vivado关联Vscode编辑器的各种配置

    1.在vivado工程界面Tool菜单中点击Settings 2.在Text Editor项目栏中打开Current Editor下拉框更换默认的文本编辑器,常用的有Notepad++。这里我们需要更改为VSCode,此时点击下拉框最下方的Custom Editor 3.Editor输入框中输入  C:/Program Files/Microsoft VS Code/Code.exe -g [file name]:[line number]前面加粗部

    2024年02月16日
    浏览(48)
  • VsCode与Idea编辑器更换背景图

    目录 VsCode Idea VsCode 需要安装background插件 安装完成后,打开设置,搜索background 然后就可以在json文件进行图片设置,透明度等等 Idea 打开File - Settings  然后找到Appearance , 往下滑,找到BackGround Image,点击  然后就会弹出背景设置的弹窗

    2024年02月14日
    浏览(47)
  • 使用VSCode作为Unity的代码编辑器

                    Unity在选择IDE 的时候其实也有很多选择,在 Windows 上我会选择 Visual Studio 或者是 VS Code ,在编程体验上来讲我更喜欢 Visual Studio 。但是在 Mac OS 可能 Visual Studio Mac 版本并非是一个靠谱的选择,它和 Rider 一样都过于笨重,编程体验比较卡顿,于是我还是

    2024年02月08日
    浏览(54)
  • Vscode编辑器C/C++环境配置

            VSCode(全称:Visual Studio Code)是一款由微软开发且跨平台的免费源代码编辑器。该软件支持语法高亮、代码自动补全(又称 IntelliSense)、代码重构、查看定义功能,并且内置了命令行工具和 Git 版本控制系统。用户可以更改主题和键盘快捷方式实现个性化设置,也

    2024年02月08日
    浏览(52)
  • 前端必备的开发工具推荐——VScode代码编辑器

            VSCode(全称:Visual Studio Code)是一款由微软开发且跨平台的免费源代码编辑器。该软件支持语法高亮、代码自动补全(又称 IntelliSense)、代码重构、查看定义功能,并且内置了命令行工具和 Git 版本控制系统。用户可以更改主题和键盘快捷方式实现个性化设置,也

    2024年02月02日
    浏览(53)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包