当前位置:网站首页>Notes on non replacement elements in the line (padding, margin, and border)
Notes on non replacement elements in the line (padding, margin, and border)
2022-06-25 05:00:00 【MomentYY】
Catalog
Notes on non replacement elements in the line (padding、margin and border)
1. The following attributes do not take effect for inline non replacement elements
- width and height;
- margin-top and margin-bottom( about margin It can take effect normally );
2. The following attributes have a special effect on inline non replacement elements
padding-top and padding-bottom( about padding It can take effect normally );
Sample code :
span { padding-top: 8px; padding-bottom: 8px; background-color: red; }<div> On div</div> <span>span1</span> <span>span2</span> <div> Next div</div>Running results :span Set up and down padding yes Do not occupy space Of , So it will extend to the upper and lower elements ;

Up and down border( about border It can take effect normally );
Sample code :
span { border-top: 8px solid green; border-bottom: 8px solid green; background-color: red; }<div> On div</div> <span>span1</span> <span>span2</span> <div> Next div</div>Running results :span Set up and down border yes Do not occupy space Of , So it will extend to the upper and lower elements ;

边栏推荐
- JDBC (IV)
- How to use the Magic pig system reinstallation master
- Precise delay based on Cortex-M3 and M4 (systick delay of system timer can be used for STM32, aducm4050, etc.)
- WPF 使用 MAUI 的自绘制逻辑
- How to install the blue lake plug-in to support Photoshop CC 2017
- PHP uses JWT
- 固態硬盤開盤數據恢複的方法
- CTFHub-rce
- OLAP analysis engine kylin4.0
- Construction scheme of distributed websocket
猜你喜欢

buuctf(pwn)

Introduction to the hardest core PWN in the whole network_ Graphic analysis

In Net 6 using dotnet format formatting code

Heavy broadcast | phase shift method + mathematical principle derivation of multi frequency heterodyne + implementation

JS, BOM, DOM (VI)

"Daily practice, happy water" 1108 IP address invalidation

执行SQL响应比较慢,你有哪些排查思路?

Kotlin compose perfect todo project surface rendering background and shadow

Summary of SQL injection (I)

File upload vulnerability (III)
随机推荐
Why is the TCP handshake just 3 times?
Working principle of asemi three-phase rectifier bridge
Efficient NoSQL database service Amazon dynamodb experience sharing
Laravel Vonage SMS sending
Records of ros2/dds/qos/ topics
JDBC (IV)
OLAP analysis engine kylin4.0
Php7.2 add JPEG extension
Integrate CDN to create the ultimate service experience for customers!
Penetration test - directory traversal vulnerability
Eyeshot 2022 Released
【Keil】ADuCM4050官方库的GPIO输出宏定义
Kotlin compose perfect todo project surface rendering background and shadow
ASEMI三相整流桥的工作原理
parallel recovery slave next change & parallel recovery push change
How to use the Magic pig system reinstallation master
CTFHub-rce
How to make colleagues under the same LAN connect to their own MySQL database
Response (XI)
Apache+php uploading large files