美文网首页
前端HTML简单布局

前端HTML简单布局

作者: Python黑户 | 来源:发表于2019-05-29 19:10 被阅读0次

原网站:

TIM截图20190529185907.png

我们可以把他切割,分块下手:

TIM截图20190529190625.png

思路明了了,就开始用<div>标签和css进行布局!


Screenshot_2019-05-29 首页.png
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link rel="stylesheet" type="text/css" href="css/首页.css"/>
</head>
<body>
    <div class="zhuyeding">
        <div class="zhuyeding_1">
            <div class="zhuyeding_5">
                <div class="zhuyeding_2"></div>
                <div class="zhuyeding_4"></div>
                <div class="zhuyeding_3"></div>
            </div>
        </div>
    </div>
    <div class="shosuo">
        <div class="shosuo_1"></div>
        <div class="shosuo_2"></div>
    </div>
    <div class="wynr">
        <div class="guanggao"></div>
        <div class="wynr_1"></div>
        <div class="wynr_2"></div>
    </div>
    <div></div>
</body>
</html>
/* 全局设置外边距 */
*{
    margin: 0;
    padding: 0;
}
.zhuyeding{
    width: 100%;
    height: 40px;
    background-color: aqua;
}
.zhuyeding_1{
    width: 1024px;
    margin: 0 auto;
    height: 100%;
    background-color: black;

    /* float: left; */
}
.zhuyeding_2{
    width: 25%;
    height: 40px;
    background-color: aquamarine;
}
.zhuyeding_3{
    height: 40px;
    width: 25%;
    background-color: brown;
    margin-right: 0%;
}
.zhuyeding_4{
    height: 40px;
    width: 50%;
    background-color: black;
}
.zhuyeding_5{
    width: 100%;
    height: 100%;
    display: inline-flex;
}
.shosuo{
    height: 127px;
    width: 100%;
    background-color: violet;
}
.shosuo_1{
    width: 1024px;
    height: 88px;
    background-color: bisque;
    margin: 0 auto;
}
.shosuo_2{
    width: 1024px;
    height: 39.753px;
    background-color: black;
    margin: 0 auto;
}
.wynr{
    width: 100%;
    height: 100%;
}
.guanggao{
    width: 1024px;
    margin: 0 auto;
    height: 63.997px;
    background-color: blue;
}
.wynr_1{
    width: 1024px;
    margin: 0 auto;
    height: 917.977px;
    background-color: rgb(173, 85, 26);
}
.wynr_2{
    width: 1024px;
    margin: 0 auto;
    height: 917.977px;
    background-color: rgb(143, 26, 173);
}


相关文章

  • 前端HTML简单布局

    原网站: 我们可以把他切割,分块下手: 思路明了了,就开始用 标签和css进行布局!

  • 前端学习路径,细化分讲。加深新手对前端技术的认知

    1、web前端基础 HTML+CSS----HTML5+CSS3,包括布局(栅格布局,流动布局,经典的弹性盒布局—...

  • Bootstrap介绍

    Bootstrap是基于HTML、CSS、JavaScript的前端框架 Bootstrap用于响应式前端布局,移...

  • 前端-第三天

    浮动 a hello 简单布局

  • web前端学习攻略

    web前端学习攻略 第一阶段: HTML+CSS: HTML进阶、CSS进阶、div+css布局、HTML+css...

  • 收集前端学习资料

    前端的一些学习资源 html和css代码规范 前端知识体系 前端网址大全 学习CSS布局 通用 CSS 笔记、建议...

  • 大前端完整学习路线(详解)

    大前端完整学习路线(详解) 第一阶段: HTML+CSS: HTML进阶、CSS进阶、div+css布局、HTML...

  • 前端学习路线

    大前端完整学习路线(详解) 第一阶段: HTML+CSS: HTML进阶、CSS进阶、div+css布局、HTML...

  • HTML基础学习笔记

    原 Blog 链接:HTML基础学习笔记 自学 html 基础笔记 Web 前端简单介绍 web 前端包含: pc...

  • 表单php

    html文件中布局一个简单的表单,提交数据html如下 /////////////////////////////...

网友评论

      本文标题:前端HTML简单布局

      本文链接:https://www.haomeiwen.com/subject/dbrutctx.html