美文网首页
网页的简单布局

网页的简单布局

作者: 风雨声豪入梦中 | 来源:发表于2018-08-09 22:55 被阅读0次

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>网酒网</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.link{
width: 1250px;
height: 100px;
background-color: red;
margin: 0 auto;
}
.wang{
width: 1250px;
height: 30px;
background-color: yellow;
margin: 0 auto;
}
.huan{
width: 80px;
height: 30px;
background-color: green;
float: left;
margin: 0 auto;
}
.zhu{
width: 80px;
height: 30px;
background-color: #33ff00;
float: left;
margin: 0 10px;
}
.deng{
width: 80px;
height: 30px;
background-color: #9ACD32;
float: left;
margin: 0 10px;
}
.shou{
width: 80px;
height: 30px;
background-color: #EE82EE;
float: left;
margin: 0 10px;
}
.wo{
width: 80px;
height: 30px;
background-color: #4682B4;
float: right;
margin: 0 auto;
}
.hui{
width: 80px;
height: 30px;
background-color: #D2B48C;
float: right;
margin: 0 10px;
}
.ti{
width: 80px;
height: 30px;
background-color: #D8BFD8;
float: right;
margin: 0 10px;
}
.le{
width: 80px;
height: 30px;
background-color: #6A5ACD;
float: right;
margin: 0 10px;
}
.geng{
width: 80px;
height: 30px;
background-color: #87CEEB;
float: right;
margin: 0 auto;
}
.sou{
width: 1250px;
height: 60px;
background-color: green;
margin: 10px auto;
}
.lou{
width: 100px;
height: 60px;
background-color: #4169E1;
float: left;
margin: 0 40px;
}
.suo{
width: 400px;
height: 40px;
background-color: #FA8072;
float: left;
margin: 0 150px;
}
.gou{
width: 200px;
height: 60px;
background-color: #F4A460;
float: right;
margin: 0 auto;
}
.zhong{
width: 1250px;
height: 1125px;
background-color: yellow;
margin: 20px auto;
}
.quan{
width: 180px;
height: 40px;
background-color: #00FFFF;
float: left;
margin: 0 20px;
}
.shou{
width: 80px;
height: 30px;
background-color: #8A2BE2;
float: left;
margin: 0 10px;
}
.ming{
width: 80px;
height: 30px;
background-color: #A52A2A;
float: left;
margin: 0 10px;
}
.xian{
width: 80px;
height: 30px;
background-color: #5F9EA0;
float: left;
margin: 0 10px;
}
.zheng{
width: 80px;
height: 30px;
background-color: #7FFF00;
float: left;
margin: 0 10px;
}
.shi{
width: 80px;
height: 30px;
background-color: #D2691E;
float: left;
margin: 0 10px;
}
.ping{
width: 80px;
height: 30px;
background-color: #6495ED;
float: left;
margin: 0 10px;
}
.tu{
width: 1250px;
height: 300px;
background-color: #6495ED;
float: left;
margin: 0 auto;
}
.yi{
width: 180px;
height: 50px;
background-color: #FFF8DC;
padding-top: none;
margin: 0 20px;
}
.pu{
width: 180px;
height: 50px;
background-color: #DC143C;
padding-top: none;
margin: 0 20px;
}
.bai{
width: 180px;
height: 50px;
background-color: #00FFFF;
padding-top: none;
margin: 0 20px;
}
.pi{
width: 180px;
height: 50px;
background-color: #00008B;
padding-top: none;
margin: 0 20px;
}
.jiu{
width: 180px;
height: 50px;
background-color: #008B8B;
padding-top: none;
margin: 0 20px;
}
.kong{
width: 180px;
height: 50px;
background-color: #B8860B;
padding-top: none;
margin: 0 20px;
}
.jin{
width: 300px;
height: 50px;
background-color: #A9A9A9;
margin: 20px auto;
}
.ji{
width: 250px;
height: 300px;
background-color: #00008B;
float: left;
margin: 0 auto;
}
.da{
width: 100%;
height: 300px;
}
.bao{
width: 250px;
height: 300px;
background-color: #008B8B;
float: left;
margin: 0 auto;
}
.ai{
width: 250px;
height: 300px;
background-color: #B8860B;
float: left;
margin: 0 auto;
}
.ma{
width: 250px;
height: 300px;
background-color: #A9A9A9;
float: left;
margin: 0 auto;
}
.an{
width: 250px;
height: 300px;
background-color: #006400;
float: left;
margin: 0 auto;
}
.yuan{
width: 250px;
height: 300px;
background-color: #BDB76B;
float: left;
margin: 0 auto;
}
.re{
width: 300px;
height: 50px;
background-color: #8B008B;
padding-top: none;
margin: 20px auto;
}
.he{
width: 312px;
height: 300px;
background-color: #556B2F;
float: left;
margin: 0 auto;
}
.xiao{
width: 312px;
height: 300px;
background-color: #FF8C00;
float: left;
margin: 0 auto;
}
.huang{
width: 312px;
height: 300px;
background-color: #9932CC;
float: left;
margin: 0 auto;
}
.tuo{
width: 312px;
height: 300px;
background-color: #8B0000;
float: left;
margin: 0 auto;
}
.jiewei{
width: 1250px;
height: 500px;
background-color: blue;
}
.qiu{
width: 200px;
height: 70px;
background-color: #2F4F4F;
float: left;
margin: 0 40px;
}
.di{
width: 200px;
height: 70px;
background-color: #FF1493;
float: left;
margin: 0 40px;
}
.qu{
width: 200px;
height: 70px;
background-color: #8FBC8F;
float: left;
margin: 0 40px;
}
.huo{
width: 200px;
height: 70px;
background-color: #E9967A;
float: left;
margin: 0 40px;
}
.fang{
width: 100%;
height: 300px;
}
.men{
width: 200px;
height: 400px;
background-color: #E9967A;
float: left;
margin: 20px 20px;
}
.nam{
width: 200px;
height: 400px;
background-color: #E9967A;
float: left;
margin: 20px 20px;
}
.xiang{
width: 200px;
height: 400px;
background-color: #E9967A;
float: left;
margin: 20px 20px;
}
.pei{
width: 200px;
height: 400px;
background-color: #E9967A;
float: left;
margin: 20px 20px;
}
.fu{
width: 200px;
height: 400px;
background-color: #E9967A;
float: left;
margin: 20px 20px;
}
.zuo{
width: 200px;
height: 400px;
background-color: #E9967A;
float: left;
margin: 20px 20px;
}
</style>
</head>
<body>

<div class="link">

<div class="wang">

<div class="huan"></div>

<div class="zhu"></div>

<div class="deng"></div>

<div class="shou"></div>

<div class="wo"></div>

<div class="hui"></div>

<div class="ti"></div>

<div class="le"></div>

<div class="geng"></div>
</div>

<div class="sou">

<div class="lou"></div>

<div class="suo"></div>

<div class="gou"></div>
</div>
</div>

<div class="zhong">
<div class="quan"></div>
<div class="shou"></div>
<div class="ming"></div>
<div class="xian"></div>
<div class="zheng"></div>
<div class="shi"></div>
<div class="ping"></div>
<div class="tu">
<div class="yi"></div>
<div class="pu"></div>
<div class="bai"></div>
<div class="pi"></div>
<div class="jiu"></div>
<div class="kong"></div>
<div class="jin"></div>
<div class="ji"></div>
<div class="da">
<div class="ba"></div>
<div class="ai"></div>
<div class="ma"></div>
<div class="an"></div>
<div class="yuan"></div>
</div>
<div class="re"></div>
<div class="he"></div>
<div class="xiao"></div>
<div class="huang"></div>
<div class="tuo"></div>
</div>
</div>

<div class="jiewei">
<div class="qiu"></div>
<div class="di"></div>
<div class="qu"></div>
<div class="huo"></div>
<div class="fang">
<div class="men"></div>
<div class="nan"></div>
<div class="xiang"></div>
<div class="pei"></div>
<div class="fu"></div>
<div class="zuo"></div>
</div>
</div>
</body>
</html>

![TIM图片20180809225915.png](https://img.haomeiwen.com/i11875244/60700b2dc8e70068.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

相关文章

  • 网页的简单布局

    网酒网 *{margin: 0;padding: 0;}.link{wid...

  • 1.网页布局基础

    网页布局基础 什么是网页布局?网页布局是网页制作的基础(DIV+CSS网页布局) 分类:流式布局,浮动布局,绝对定...

  • 网页基本布局

    网页常见的几种简单布局 单列布局 两列布局 三列布局 通栏布局 单列布局 效果图: top{ }/宽度980px,...

  • 总结随笔

    网页布局 - 单列布局 - 双列布局 - 三列布局 - 混合布局 单列布局 其中单列布局最为简单,一般应用于搜索引...

  • CSS 系列——Grid布局学习笔记

    Grid 布局,就是网格布局。 简单的需求,垂直居中、水平居中等,有 Flex 布局。 网格布局,对应网页设计或者...

  • 6、盒子模型 边框、圆角、阴影、内外边距、外边距塌陷

    1、网页布局的本质 网页布局的核心本质: 就是利用 CSS 摆盒子。 网页布局过程: 先准备好相关的网页元素,网页...

  • 浅谈响应式布局

    今天给大家谈谈关于响应式布局。响应式布局,简单来说,让网页中的元素(控件)跟随网页宽高的变化而变化。媒体查询的主要...

  • CSS布局

    单列布局 单列布局通常用于网站的首页,分为头部的导航、网页内容、页脚相关信息。 优点:布局实现简单,界面显示整体性...

  • CSS 15分钟快速掌握flex布局

    学习最好的方法就是把你知道的告诉别人 flex布局在网页布局应用广泛。优点:响应式、使用简单、布局灵活,废话不多说...

  • 网页简单布局之结构与表现原则

    原来我的布局结构停留在初级阶段,看了后已经高级网页简单布局之结构与表现原则

网友评论

      本文标题:网页的简单布局

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