当前位置:网站首页>45padding不会撑开盒子的情况
45padding不会撑开盒子的情况
2022-07-25 14:40:00 【hello_sunny123】
padding不会撑开盒子的情况

代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>18-padding不会撑开盒子的情况</title>
<style> /* h1 { */ /* 如果盒子没有指定width/height属性,则此时padding不会撑开 */ /* h1:1520x200 */ /* height: 200px; background-color: pink; */ /* h1: 1520x260 */ /* padding: 30px; } */ h1 {
/* h1: 1580x260 */ width: 100%; height: 200px; background-color: pink; padding: 30px; } div {
width: 300px; height: 100px; background-color: purple; } div p {
/* width: 100%; */ padding: 30px; background-color: skyblue; } </style>
</head>
<body>
<h1></h1>
<div>
<p></p>
</div>
</body>
</html>
结果

边栏推荐
- Software testing -- 1. Outline of software testing knowledge
- Runtimeerror: CUDA out of memory (solved) [easy to understand]
- 物理量与单位符号的书写标准
- I hope some suggestions on SQL optimization can help you who are tortured by SQL like me
- pytorch训练代码编写技巧、DataLoader、爱因斯坦标示
- 优质数对的数目[位运算特点+抽象能力考察+分组快速统计]
- Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]
- Matplotlib data visualization three minutes entry, half an hour enchanted?
- LeetCode-198-打家劫舍
- Dpkg package download addresses of various platforms (including arm64)
猜你喜欢

The main function of component procurement system, digital procurement helps component enterprises develop rapidly
![[MySQL must know and know] trigger | permission management](/img/59/cb805d972097a6a8ed7f3ae454a91d.png)
[MySQL must know and know] trigger | permission management
![[eloquence] negotiation persuasion skills and Strategies](/img/01/0fcbbfcf35a6d166c14ba4215eacac.jpg)
[eloquence] negotiation persuasion skills and Strategies

The concept and operation rules of calculus of variations

sudo rosdep init Error ROS安装问题解决方案

微信公众号正式环境上线部署,第三方公众平台接入

河源市区推出消防安全主题奶茶 助推夏季火灾防控

Initial flask and simple application

SQL优化的一些建议,希望可以帮到和我一样被SQL折磨的你

为什么中建、中铁都需要这本证书?究竟是什么原因?
随机推荐
51 single chip microcomputer learning notes (2)
微信公众号正式环境上线部署,第三方公众平台接入
MySQL 45 talks about | 06 global locks and table locks: Why are there so many obstacles to adding a field to a table?
DVWA practice - brute force cracking
The concept and operation rules of calculus of variations
Numpy basic package for data analysis
Quickly set up dobbo demo
牛客多校 E G J L
Software testing -- 1. Outline of software testing knowledge
Educational codeforces round 132 (rated for Div. 2) C, d+ac automata
How to design a high concurrency system?
关于RDBMS和非RDBMS【数据库系统】
Bond0 script
filters获取data中的数据;filters使用data中的数据
阿里云安装MYSQL5.7
kibana操作es
MySQL 45讲 | 06 全局锁和表锁 :给表加个字段怎么有这么多阻碍?
[eloquence] negotiation persuasion skills and Strategies
苹果官网产品打折 买iPhone 13 Pro Max 可省600元
Gson and fastjson