当前位置:网站首页>Padding percentage operation
Padding percentage operation
2022-06-26 17:55:00 【Dandan's servant】
stay css Inside padding The value can also be set as a percentage
- 1. If position The attribute is static 、 relative or sticky, The containing block is the block level element of the nearest ancestor of the element content decision
- 2. If position The attribute is absolute、fixed, Include blocks plus padding, namely content + padding.
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
<style> body {
width: 1000px; height: 500px; padding: 100px; } .out {
position: relative; width: 200px; height: 100px; padding: 10%; } .inner {
position: absolute; width: 100px; height: 50px; padding: 10%; } </style>
</head>
<body>
<div class="out">
<div class="inner">inner</div>
</div>
</body>
</html>

边栏推荐
- Hello, is it safe to open an online stock account and buy stocks now?
- How to open a stock account? Is it safe to open an account online now?
- padding百分比操作
- Use FST JSON to automatically generate faster JSON serialization methods
- The king of Internet of things protocol: mqtt
- 数字签名论述及生成与优点分析
- Cloud native 02: Alibaba cloud cloud efficient flow pipeline
- Use middleware to record slow laravel requests
- Several key points in divorce agreement
- Redis and database data consistency
猜你喜欢

Halcon's region: features of multiple regions (5)

pycharm如何修改多行注释快捷键

RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
![[uniapp] the uniapp mobile terminal uses uni Troubleshooting of navigateback failure](/img/26/da00e70d0955bcdef3362474bc5fc7.png)
[uniapp] the uniapp mobile terminal uses uni Troubleshooting of navigateback failure

RSA概念详解及工具推荐大全 - lmn

Troubleshooting ideas that can solve 80% of faults!

数字签名标准(DSS)

Here comes the hero League full skin Downloader

How pycharm modifies multiline annotation shortcuts

LeetCode——226. 翻轉二叉樹(BFS)
随机推荐
ZCMU--1367: Data Structure
MySQL的MVCC机制详解
How about opening an account at Guojin securities? Is it safe?
正则匹配相同字符
Here comes the hero League full skin Downloader
同花顺开户怎么样安全吗?怎么炒股开户
Leetcode HOT100 (22--- bracket generation)
数据加密标准DES安全性
Cloud native 02: Alibaba cloud cloud efficient flow pipeline
Detailed explanation of asymmetric cryptosystem
Notes on flowus
JNI的 静态注册与动态注册
Comp281 explanation
Daily record 2
[recommendation system learning] technology stack of recommendation system
How to open a stock account? Is it safe to open an account online now?
Lm06 the mystery of constructing the bottom and top trading strategy only by trading volume
pycharm的plt.show()如何保持不关闭
陈强:阿里千亿级大规模数字商业知识图谱助力业务增长
No manual prior is required! HKU & Tongji & lunarai & Kuangshi proposed self supervised visual representation learning based on semantic grouping, which significantly improved the tasks of target dete