当前位置:网站首页>Pied de page fixe
Pied de page fixe
2022-07-20 13:24:00 【51CTO】
.Supposons que notre page se compose de trois parties:En - tête、Contenu principal et pied de page.Quel que soit le contenu principal,Le pied de page est toujours affiché en bas est une disposition commune.
Style de base:
Utiliser margin
- Dans la zone de contenu
margin-bottom
Est négatif
- Pied de page
margin-top
Est une taille de hauteur négative
Utiliser calc()
Utiliser flex
Utiliser CSS flex
, La mise en page est réalisée comme suit: :
Paramètres flex-grow: 1
Pour le contenu principal, il prendra de l'espace libre .
Ou utiliser margin: auto
:
Utiliser grid
sticky
Plus d'informations
边栏推荐
- Nacos配置管理——统一配置管理
- Rk3399 platform development series explanation (interrupt chapter) 13.17 summary of interrupt processing methods
- Three application functions of digital sand table popular science
- vivo官网APP全机型UI适配方案
- c# LeetCode刷题笔记5- 一维数组的动态和
- Panda3D get mouse position, Panda3D Task Manager
- IDEA解决配置文件属性提示消失
- The SQL seen here will be truncated. Is there any way to see the complete SQL?
- [untitled] understand DNET application domain
- 关于部署ogg 微服务的一些疑问
猜你喜欢
Web3创业具备创新爆炸式增长的所有要素
Feign入门之快速实战
NoSQL-Mongodb
Live short video source code - the development sequence of live short video source code is five steps
Feign's introduction to fast practice
Several small open source projects of mine over the years
从工程师到技术leader思维升级
Failed to process package ‘cartographer_ ros‘ :
Isn't it too much to play Gobang in idea?
OpenHarmony littlefs文件系统存储结构与IO性能优化分析
随机推荐
RK3399平台开发系列讲解(中断篇)13.17、中断处理方式的汇总
IDEA解决配置文件属性提示消失
Class notes (4) (1) -571 Monetary system
Vite 入门
固定头部
Dynamic memory management
vivo官网APP全机型UI适配方案
Nacos cluster setup (Reprint)
12. Talk about the implementation principle of single sign on in the project?
Is flush reliable? Is it safe to open a stock account by mobile phone?
学习黑客需要先了解哪些知识,零基础怎样掌握网络安全知识体系
How to implement dynamic submission of SQL jobs and control of startup and shutdown?
在不切换分支的情况下查看不同分支中的文件
Qt | 通过创建一个简单项目了解Qt Creator
2022-07-18:以下go语言代码输出什么?A:Groutine;B:Main;C:Goroutine;D:GoroutineMain。 package m
Débogage du Navigateur
一汽红旗“王炸”上市,安全、舒适一个不落
【Kingbase】数据类型格式化函数
使用OneDNS完美解决办公网络优化问题
Rk3399 platform development series explanation (interprocess communication) 14.10. How to view process scheduling information