当前位置:网站首页>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>

边栏推荐
- Leetcode topic [array] -283- move zero
- How to add an application to the deviceidle whitelist?
- Concept and working principle of data encryption standard (DES)
- 14《MySQL 教程》INSERT 插入数据
- Several key points in divorce agreement
- LM06丨仅用成交量构造抄底摸顶策略的奥秘
- Dos et détails de la méthode d'attaque
- Halcon's region: features of multiple regions (5)
- Detailed explanation of browser storage methods: the origin and difference of cookies, localstorage and sessionstorage
- Leetcode daily [2022 - 02 - 16]
猜你喜欢

RSA概念详解及工具推荐大全 - lmn
![[code Capriccio - dynamic planning] t583. Deleting two strings](/img/01/fd9ff51ea1d70188e372e925d8a1c7.png)
[code Capriccio - dynamic planning] t583. Deleting two strings

MySQL index

14 MySQL tutorial insert insert data
![[ten thousand words summary] starting from the end, analyze in detail how to fill in the college entrance examination volunteers](/img/77/715454c8203d722e246ed70e1fe0d8.png)
[ten thousand words summary] starting from the end, analyze in detail how to fill in the college entrance examination volunteers
![[recommendation system learning] technology stack of recommendation system](/img/ff/afc6f4b0997cfcb9e01ffbebf2a872.png)
[recommendation system learning] technology stack of recommendation system

Tsinghua & Shangtang & Shanghai AI & CUHK proposed Siamese image modeling, which has both linear probing and intensive prediction performance!

有依赖的背包问题

让torch.cuda.is_available()从false变成true的一点经验

MySQL exports all table indexes in the database
随机推荐
二分查找-2
sparksql如何通过日期返回具体周几-dayofweek函数
Several key points in divorce agreement
wechat_微信小程序中解决navigator进行页面跳转并传递参数问题
[uniapp] the uniapp mobile terminal uses uni Troubleshooting of navigateback failure
Tsinghua & Shangtang & Shanghai AI & CUHK proposed Siamese image modeling, which has both linear probing and intensive prediction performance!
next(iter(dataloader))的一点点体会
10 cloud security best practices that enterprises need to know
vutils. make_ A little experience of grid () in relation to black and white images
Using redis for user access data statistics hyperloglog and bitmap advanced data types
[recommendation system learning] technology stack of recommendation system
[buuctf.reverse] 126-130
transforms. The input of randomcrop() can only be PIL image, not tensor
【代码随想录-动态规划】T583、两个字符串的删除操作
Viteconfigure project path alias
QPushButton 样式使用示例(以及按钮setmenu添加下拉菜单的方法)
同花顺开户怎么样安全吗?怎么炒股开户
Leetcode topic [array] -283- move zero
行锁分析和死锁
Detailed explanation of browser storage methods: the origin and difference of cookies, localstorage and sessionstorage