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

边栏推荐
- js强制转换
- Concurrent thread safety
- 牛客网:设计LRU缓存结构 设计LFU缓存结构
- Secrets of gear contract
- [dynamic planning] Jianzhi offer II 091 Paint the house
- 宝藏又小众的CTA动画素材素材网站分享
- The difference between round and truncate in SQL (round or truncate)
- Preparing for the Blue Bridge Cup and ccf-csp
- Static registration and dynamic registration of JNI
- Synchronized description of concurrency
猜你喜欢

DoS及攻擊方法詳解

无需人工先验!港大&同济&LunarAI&旷视提出基于语义分组的自监督视觉表征学习,显著提升目标检测、实例分割和语义分割任务!

wechat_ Solve the problem of page Jump and parameter transfer by navigator in wechat applet

vue--vuerouter缓存路由组件

SIGIR 2022 | University of Hong Kong and others proposed the application of hypergraph comparative learning in Recommendation System

物联网协议的王者:MQTT

Concept and working principle of data encryption standard (DES)

Analysis of deep security definition and encryption technology

Live broadcast preview | how can programmers improve R & D efficiency? On the evening of June 21, the video number and station B will broadcast live at the same time. See you or leave!

Niuke network: Design LRU cache structure design LFU cache structure
随机推荐
sparksql如何通过日期返回具体周几-dayofweek函数
I want to know. I am in Zhaoqing. Where can I open an account? Is it safe to open an account online?
Problems encountered this week
LM06丨仅用成交量构造抄底摸顶策略的奥秘
决策树与随机森林
陈强:阿里千亿级大规模数字商业知识图谱助力业务增长
关于FlowUs这一款国民好笔记
vutils.make_grid()与黑白图像有关的一个小体会
js强制转换
背包问题求方案数
Introduction to distributed cache / cache cluster
股票开账户如何优惠开户?现在在线开户安全么?
17.13 补充知识、线程池浅谈、数量谈、总结
RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
How does Guosen Securities open an account? Is it safe to open a stock account through the link
Plt How to keep show() not closed
Detailed explanation of dos and attack methods
数据加密标准(DES)概念及工作原理
物联网协议的王者:MQTT
Chen Qiang: Alibaba's 100 billion level large-scale digital business knowledge map helps business growth