均匀分布
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <meta http-equiv="X-UA-Compatible" content="ie=edge"> 7 <title>均匀分布</title> 8 9 <style> 10 .container{ 11 width: 1000px; 12 margin: 50px auto; 13 border: 1px solid #ddd; 14 overflow: hidden; 15 /* padding: 10px; */ 16 } 17 18 .box{ 19 background: #0f0; 20 height: 200px; 21 /* width: 16%; */ 22 width: calc(100% / 6); 23 float: left; 24 } 25 .box:nth-child(2){ 26 background: #00f; 27 } 28 .box:nth-child(3){ 29 background: #f00; 30 } 31 .box:nth-child(4){ 32 background: #ff0; 33 } 34 .box:nth-child(5){ 35 background: #f0f; 36 } 37 .box:nth-child(6){ 38 background: #0ff; 39 } 40 41 42 body{ 43 margin: 0; 44 } 45 46 html, body, .mobile{ 47 height: 100%; 48 } 49 50 .header{ 51 height: 45px; 52 background: #333; 53 } 54 55 .body{ 56 display: block; 57 height: calc(100% - 85px); 58 overflow: auto; 59 } 60 61 .footer{ 62 height: 40px; 63 background: #0f0; 64 } 65 </style> 66 </head> 67 <body> 68 69 <!-- <div class="container"> 70 <div class="box"></div> 71 <div class="box"></div> 72 <div class="box"></div> 73 <div class="box"></div> 74 <div class="box"></div> 75 <div class="box"></div> 76 </div> --> 77 78 <div class="mobile"> 79 <header class="header"></header> 80 <session class="body"> 81 <h2>asdfasdfasdf</h2> 82 <h2>asdfasdfasdf</h2> 83 <h2>asdfasdfasdf</h2> 84 <h2>asdfasdfasdf</h2> 85 <h2>asdfasdfasdf</h2> 86 <h2>asdfasdfasdf</h2> 87 <h2>asdfasdfasdf</h2> 88 <h2>asdfasdfasdf</h2> 89 <h2>asdfasdfasdf</h2> 90 <h2>asdfasdfasdf</h2> 91 <h2>asdfasdfasdf</h2> 92 <h2>asdfasdfasdf</h2> 93 <h2>asdfasdfasdf</h2> 94 <h2>asdfasdfasdf</h2> 95 <h2>asdfasdfasdf</h2> 96 <h2>asdfasdfasdf</h2> 97 <h2>asdfasdfasdf</h2> 98 </session> 99 <footer class="footer"> 100 101 </footer> 102 </div> 103 </body> 104 </html>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 25岁的心里话
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现