浮动练习(3)

##每台电脑分辨率不同,数值高度宽度需要自己调,仅供参考

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>

<style>

div{

display: flex;

align-items: center;

justify-content: center;

}

.main{

width: 100%;

font-size: 24px;

/*text-align: center;*/

display: block;

}

.main .banner{

widows: 100%;

height: 100px;

/*background: red;*/

}

.main .banner .logo{

background: gainsboro;

width: 20%;

height: 100%;

float: left;

}

.main .banner .banner1{

background: gainsboro;

width: 58%;

height: 100%;

float: left;

margin: 0px 19px;

}

.main .banner .banner2{

background: gainsboro;

width: 20%;

height: 100%;

float: left;

}

.main .menu{

width: 100%;

height: 43px;

background: gainsboro;

margin: 16px 0px;

}

.main .container{

display: block;

height: 680px;

}

.main .container .lanmu{

width: 653px;

/*background: gainsboro;*/

height:100%;

float: left;

margin-right: 15px;

display: block;

}

.main .container .lanmu2{

width: 457px;

/*background: gainsboro;*/

height:100%;

float: left;

display: block;

}

.lanmu .lanmu3{

width: 655px;

height: 300px;

border: 2px solid black;

}

.lanmu .lanmu4{

width: 309px;

height: 355px;

border: 2px solid black;

margin: 15px 15px 0px 0px;

display: inline-block;

float: left;

}

.lanmu .lanmu5{

margin-right: 0px;

}

.lanmu2 .lanmu6{

width: 450px;

height: 212px;

border: 2px solid black;

margin-bottom: 16px;

}

.foot{

width: 100%;

height: 80px;

background: gainsboro;

margin: 16px 0px;

}

</style>

</head>
<body>

<div class="main">

<div class="banner">

<div class="logo">logo</div>

<div class="banner1">banner1</div>

<div class="banner2">banner2</div>

</div>

<div class="menu">菜单</div>

<div class="container">

<div class="lanmu">

<div class="lanmu3">栏目一</div>

<div class="lanmu4">栏目三</div>

<div class="lanmu4 lanmu5">栏目四</div>

</div>

<div class="lanmu">

<div class="lanmu3">栏目二</div>

<div class="lanmu4">栏目五</div>

<div class="lanmu4 lanmu5">栏目六</div>

</div>

<div class="lanmu2">

<div class="lanmu6">栏目七</div>

<div class="lanmu6">栏目八</div>

<div class="lanmu6">栏目九</div>

</div>

</div>

<div class="foot">页脚</div>

</div>
</body>
</html>

相关推荐
用户059540174466 小时前
用了6个月LangChain,才发现AI Agent的记忆存储一直有坑——写了23个Pytest用例才彻底修好
前端·css
用户059540174466 小时前
把LLM记忆测试从手工脚本换成Pytest参数化,回归时间从2小时降到10分钟
前端·css
用户059540174461 天前
Redis缓存一致性踩坑实录:线上故障排查6小时,我用pytest+内存快照把它永久关进了笼子
前端·css
llllk2 天前
新手向逐段讲解
css
ZhengEnCi2 天前
Q02-Vue-React-index.html完全指南
vue.js·react.js·html
牧艺3 天前
HTML-in-Canvas 深度解析:让 Canvas 真正「吃上」HTML 这碗饭
前端·html·canvas
爱勇宝3 天前
我给自己做了一个新标签页:不登录、不打扰、打开就能用
前端·html·浏览器
玄玄子3 天前
CSS 浮动引起父元素高度塌陷
前端·css
越努力越幸运664 天前
多模态代码调试实战:Gemini3.5 精准捕获 HTML 隐性语法
html
用户0926292831454 天前
CSS 代码调试总踩坑?Gemini 3.5 精准定位修复
css