当前位置:网站首页>高度剩余法
高度剩余法
2022-07-04 14:57:00 【大象与小蚂蚁】
有两个div,里面各有文字1和文字2,如何实现文字1和文字2的距离,可以使用高度剩余法。
需要实现文字1和文字2之间的距离,可以设置文字1所在盒子的一个高度
<body>
<div class="top">文字1</div>
<div class="bottom">文字2</div>
</body>
<style>
.top {
width: 300px;
height: 300px;
background: #fff;
/* 需要实现文字1和文字2之间的距离,可以设置文字1所在盒子的一个高度 */
}
</style>
边栏推荐
- Oracle监听器Server端与Client端配置实例
- Stress, anxiety or depression? Correct diagnosis and retreatment
- Penetration test --- database security: detailed explanation of SQL injection into database principle
- MFC implementation of ACM basic questions encoded by the number of characters
- 科普达人丨一文看懂阿里云的秘密武器“神龙架构”
- Accounting regulations and professional ethics [7]
- 如何为ONgDB核心项目源码做贡献
- Book of night sky 53 "stone soup" of Apache open source community
- PR FAQ: how to set PR vertical screen sequence?
- Accounting regulations and professional ethics [9]
猜你喜欢
What is torch NN?
Anta is actually a technology company? These operations fool netizens
Function test - knowledge points and common interview questions
[tutorial] yolov5_ DeepSort_ The whole process of pytoch target tracking and detection
Intranet penetrating FRP: hidden communication tunnel technology
Interface test - knowledge points and common interview questions
Model fusion -- stacking principle and Implementation
Model fusion -- stacking principle and Implementation
[native JS] optimized text rotation effect
Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)
随机推荐
L1-072 scratch lottery
Variable cannot have type 'void'
Lv166 turned over
Laravel simply realizes Alibaba cloud storage + Baidu AI Cloud image review
Market trend report, technical innovation and market forecast of tetrabromophthalate (pht4 diol) in China
The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
Accounting regulations and professional ethics [7]
China tall oil fatty acid market trend report, technical dynamic innovation and market forecast
Some fields of the crawler that should be output in Chinese are output as none
Practice: fabric user certificate revocation operation process
Filtered off site request to
CMPSC311 Linear Device
Socks agent tools earthworm, ssoks
[Previous line repeated 995 more times]RecursionError: maximum recursion depth exceeded
~88 running people practice
Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)
Daily notes~
Recommend 10 excellent mongodb GUI tools
Accounting regulations and professional ethics [11]
The four most common errors when using pytorch