当前位置:网站首页>Summary of margin consolidation issues
Summary of margin consolidation issues
2022-07-20 09:07:00 【Ares-Wang】
Merger issues :
The vertical adjacent outer margins of block level elements are merged , Inline elements don't actually occupy the upper and lower margins . The left and right outer margins of inline elements 、 Floating outer margins are also merged . Outer margin specifies a negative outer margin value , But be careful when using .
float Will inline elements display convert to block. Block level elements .
absolute、fixed Will inline elements display convert to block. Block level elements .
The vertical adjacent outer margins of block level elements are merged : There is only one setting for merging : The above block level element settings margin-bottom; The following block level element settings margin-top. The attribute values of two can be positive or negative .
1: When both attribute values are positive or negative , Take the larger absolute value . If the final result is positive , There is a gap between these two block level elements ; If the final result is negative , Then there is an overlay between these two block level elements , The bottom will cover the top , The coverage distance is Final The absolute value of the result .
2: When two attribute values have positive and negative , Take the sum of the two attribute values , As the final result . If the final result is positive , There is a gap between these two block level elements ; If the final result is negative , Then there is an overlay between these two block level elements , The bottom will cover the top , The coverage distance is final result The absolute value of .
Inline elements The margin calculation is the same as above , Because the width and height of inline elements , Up and down inside and outside margins Don't take effect , I didn't cancel the corresponding value .
边栏推荐
- Asp.NET <%=%> <%#%> <% %> <%@%>
- 聚合支付满足各行业接入多种支付通道
- 三方支付公司有哪些?
- ShardingJDBC
- Generate crud restful API by configuring zero code without programming
- 上传本地jar包到线上私服
- Redis data types and application scenarios
- How to open the enterprise payment to change | red envelope function
- MySQL binary solves the case sensitive problem of MySQL data
- 如何抓取 app 网站 的数据
猜你喜欢
106 Polkadot substrate: fork free upgrade
js缓冲运动
Generate crud restful API by configuring zero code without programming
Without programming, generate crud based on Microsoft MSSQL database zero code, add, delete, modify and check restful API interface
浅谈微信支付风控
Google Chrome 浏览器快捷键说明大全
10A Polkadot substrate: node index
What if I forget my MySQL password?
ShardingJDBC
Excel 错误含义
随机推荐
Summary of basic knowledge of MySQL and redis
Using NVM use, exit status 1 and exit status 145 are garbled
JVM online problem tracking
航天信息开电子发票 3.0 以及4.0(电子发票)
uniapp中引入自定义图标
C语言实现 求解逆矩阵
uni-app.开发微信小程序实现消息订阅
crudapi增删改查接口零代码产品成功案例之商会联盟卡项目
Vivado error code [usf-xsim-62] [xsim 43-4316] solution
除了Stripe,Paypal国内还能使用哪些海外支付接口
代付和分账的区别
手写校验框架
How to build your own fourth party payment platform?
[JS] usage of call (), apply (), bind ()
Golang:容易误解的一些操作
10m Polkadot substrate: your first contract
Android Studio 执行 Kotlin 抛出 com.android.builder.errors.EvalIssueException 问题的解决方法
无需编程,通过配置零代码生成CRUD RESTful API
When programmers have no Internet, how can they continue to learn to write code
ShardingJDBC