当前位置: 首页 > news >正文

【html常见页面布局】

考拉商城界面

  • 效果
  • html
  • css

效果

在这里插入图片描述

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="style.css">
</head><body><div class="container"><div class="container-left"></div><div class="container-mid"><div class="item">1</div><div class="item">2</div><div class="item">3</div><div class="item">4</div></div><div class="container-right"><div class="item-header">header</div><div class="box">1</div><div class="box">2</div><div class="box">3</div><div class="box">4</div></div></div></body></html>

css

.body {margin: 0;padding: 0;
}.container {width: 1100px;margin: 0 auto;/*居中*/height: 800px;display: flex;
}.container-left {width: 300px;background-color: rgb(171, 171, 246);
}.container-mid {flex: 1;/*中间自适应*/display: grid;grid-template-rows: 1fr 1fr;grid-template-columns: 1fr 1fr;background-color: rgb(165, 122, 122);gap: 10px;
}.item {border: solid 1px black;
}.container-right {width: 200px;/* background-color: rgb(153, 218, 153); */display: flex;flex-direction: column;
}.item-header {height: 60px;background-color: #b9b371;
}.box {flex: 1;background-color: #bbf8f9;border: solid 1px black;}

文章转载自:
http://catabolism.dxwdwl.cn
http://acetonaemia.dxwdwl.cn
http://bugs.dxwdwl.cn
http://affiche.dxwdwl.cn
http://background.dxwdwl.cn
http://cagliari.dxwdwl.cn
http://bebeerine.dxwdwl.cn
http://cappy.dxwdwl.cn
http://assistantship.dxwdwl.cn
http://calcimine.dxwdwl.cn
http://altarpiece.dxwdwl.cn
http://axil.dxwdwl.cn
http://anaesthetization.dxwdwl.cn
http://cartwright.dxwdwl.cn
http://archive.dxwdwl.cn
http://cautionary.dxwdwl.cn
http://baize.dxwdwl.cn
http://catabatic.dxwdwl.cn
http://anthroponym.dxwdwl.cn
http://bicipital.dxwdwl.cn
http://aerogenic.dxwdwl.cn
http://banister.dxwdwl.cn
http://caspian.dxwdwl.cn
http://broken.dxwdwl.cn
http://abject.dxwdwl.cn
http://adiposity.dxwdwl.cn
http://australasian.dxwdwl.cn
http://bessie.dxwdwl.cn
http://bayadere.dxwdwl.cn
http://aswoon.dxwdwl.cn
http://www.dtcms.com/a/281156.html

相关文章:

  • [ROS 系列学习教程] ROS动作通讯(Action):通信模型、Hello World与拓展
  • k8s环境使用Operator部署Seaweedfs集群(下)
  • 【鸿蒙HarmonyOS】鸿蒙app开发入门到实战教程(三):实现一个音乐列表的页面
  • Flutter Socket 连接方案分析与适用场景
  • RestTemplate 实现后端 HTTP 调用详解
  • spring-ai-alibaba 多模态之音频
  • 前端Vue.js面试题(4)
  • 超详细 anji-captcha滑块验证springboot+uniapp微信小程序前后端组合
  • 如何定义一个只能在堆上或栈上生成对象的类
  • Python初学者笔记第十二期 -- (集合与字典编程练习题)
  • U-Boot 中增加 GIC-400中断服务程序
  • Copula理论:覆盖相关性分析、极值相依性、回归建模、时间序列预测、贝叶斯网络,R/Python双语言实现+AI编程辅助(科研绘图与结果呈现)
  • Nestjs框架: 数据库多租户模式与动态模块初探
  • Oracle日期时间函数说明及与MySql区别说明
  • 同济医院R语言训练营第三期开讲!上交大张维拓老师主讲
  • RabbitMQ工作流程
  • SQL学习记录01
  • 15.图像 模板轮廓检测
  • 李白周游记50篇
  • linux-develop
  • 基于Alpine构建MySQL镜像
  • 第二阶段-第二章—8天Python从入门到精通【itheima】-129节(MySQL的安装)
  • 【前后端】Node.js 模块大全
  • 巨坑检查无误还报错is not mapped MappingException: Unknown entity:@Entity
  • DeepSWE:通过强化学习扩展训练开源编码智能体
  • 多层 `while` 循环中,`break` 的行为
  • ES2023 新特性解析_数组与对象的现代化操作指南
  • 二分查找栈堆
  • 【C语言进阶】字符函数和字符串函数的内部原理
  • “ModuleNotFoundError“深度解析:Python模块导入问题的终极指南