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

HTML+CSS練習---空隙產生記錄

1.第一層和第二層之間的間隙:以為導航欄超過高度朝下擠下來了

2.第2層兩個div中的空隙

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Document</title><style>@font-face {font-family: 'iconfont';src: url('./font/iconfont.ttf?t=1722477916565') format('truetype');}.iconfont {font-family: "iconfont" !important;font-size: 16px;font-style: normal;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}body{padding: 0;margin: 0;background-color: #F5F5F5;font-size: 16px;font-family: Arial, Helvetica, sans-serif;}.clear::after{content: "";display: block;clear: both;}.clear::before{content: "";display: block;clear: both;}.fl{float: left;}.fr{float: right;}.ml7{margin-left: 7px;}.mr7{margin-right: 7px;}.mtb7{margin: 7px 0px;}ul li{list-style: none;}.layer{margin: 0 auto;}.c5{color: #f50;}a{text-decoration: none;}#header1{background-color: #F5F5F5;height: 36px;width: 1280px;}#header1 .selectcorp{width: 500px;font-size: 16px;background-color: white;}#header1 .corpinfo{height: 30px;line-height: 30px;}#header1 .userinfo{margin-right: 30px;height: 30px;line-height: 30px;}#header1 .userinfo .ritem{margin: 0 15px;}#header1 .userinfo .ritem img{width: 18px;height: 18px;}/* 第2塊 logo部分 */#header2{background-color: #e1e9ff;height: 120px;}#header2 .content1{background-color:  #e1e9ff;height: 180px;width: 1280px;background-color: greenyellow;/* overflow: hidden; */}#header2 .content1 .logo{width: 600px;height: 180px;line-height: 180px;background-color: #f50;}#header2 .content1 .logo span{display: inline-block;height: 180px;line-height: 180px;font-size: 50px;font-weight: bold;background-color: #f50;}</style>
</head><body><!-- 第一行登錄信息 --><div id="header1" class="layer clear"><div class="corpinfo mtb7 fl"><span>公司代碼:</span><select class="selectcorp"><option>000XXX--XXXXXXXXX股份有限公司</option></select></div><ul class="userinfo mtb7 fr"><li  class="ritem fr"><span class="iconfont">&#xe798;</span><span>安全退出</span></li><li  class="ritem fr"><span class="iconfont">&#xe7fb;</span><span>修改密碼</span></li><li  class="ritem fr"><span class="iconfont">&#xe60c;</span><span>權限變更</span></li><li class="ritem fr"><span class="iconfont">&#xe608;</span><span>用戶名</span></li>  </ul></div><!-- 第2行系統logo --><div id="header2"><div class="content1 layer clear"><div class="logo fl"><img src=""><span>|XXX系統</span></div><div class="logo fr"> <span style="color: #3378cf;">XXX化&nbsp;&nbsp;&nbsp;XXX化&nbsp;&nbsp;&nbsp;XXX化</span></div>  </div></div><div class="lastone"></div></body>
</html>

http://www.lryc.cn/news/414155.html

相关文章:

  • 【leetcode】相同的树、另一棵树的子树、翻转二叉树(利用深度优先遍历)
  • Linux系统窗口水印难点分析
  • LabVIEW与CANopen实现自动化生产线的设备控制与数据采集
  • 吃惊!这个Windows双系统方法逆天了|UEFI篇
  • 【C语言基础】C语言试题复习
  • 一拖三无线充底座-带给你极致的便利生活
  • 探索 Electron:打造深度书籍挖掘机的搜索体验
  • tomato靶场
  • 【Vue】computed计算对象不生效问题?
  • 算法小白的进阶之路(力扣9~12)
  • DOCKER容器中安装JDK1. 8 详细步骤
  • 计算机毕业设计Python+Tensorflow股票推荐系统 股票预测系统 股票可视化 股票数据分析 量化交易系统 股票爬虫 股票K线图 大数据毕业设计 AI
  • 深度学习常见的卷积和注意力机制文章集锦(持续更新)
  • 如何在立创EDA的PCB电路板导入logo图案
  • springboot集成canal
  • leetcode数论(2447. 最大公因数等于 K 的子数组数目)
  • 实现数组扁平化的几种方式
  • 3D打印技术正悄然重塑模具工业格局
  • 深入解析 KMZ 文件的处理与可视化:从数据提取到地图展示项目实战
  • YOLOv5轻量化改进 | backbone | 结合MobileNetV4(包含多个结构和使用方式)
  • 学习安卓开发遇到的问题
  • 数学建模--禁忌搜索
  • LeetCode 第136场双周赛个人题解
  • The operation was rejected by your operating system. code CERT_HAS_EXPIRED报错解决
  • [Git][基本操作]详细讲解
  • springMVC中从Excel文件中导入导出数据
  • C++的STL简介(三)
  • BERT模型
  • 举例说明计算机视觉(CV)技术的优势和挑战
  • Animate软件基础:关于补间动画中的图层