当前位置:网站首页>Practical cases, in-depth analysis
Practical cases, in-depth analysis
2022-06-10 12:18:00 【InfoQ】
Preface
What is? css A block element ?
css Three characteristics of block elements :
- Each block level element is on its own line , The following elements can only start on another line , It's not possible for two elements to share one line .
- Height of element 、 Width 、 Row height and top bottom margin can be set .
- If the width of the element is not set , The default is the width of the parent element .
Element characteristics :
- Display in a rectangular area on the page .
- Top down , Monopolize one line
- You can add width and height directly
- In general , As a container for other elements or content
- 《 Analysis of front-end interview questions in large factories +Web Core summary learning notes + Enterprise project actual combat source code + HD explanation of the latest video 》 Free open source Hui Xin search official account 【 Advanced programming 】The smallest unit in a page is also a rectangle .
- Arrange one by one in a row .
- You can't add width and height directly , Size is supported by content .
- Inline elements also conform to the rules of the box model , But there are problems with individual attributes (padding-top/bottom margin-top/bottom)
- When inline elements are arranged in a row , There is a gap between them
- Width and height can be set .
- By default , Show them one by one in a row , There is a gap between them .
- Of the current element display The value is inline-block when , Can support vertical-align attribute .
Common elements :
Element type conversion :
- display:block; effect : Turning elements into blocks , It has the characteristics of massive elements . Add : Most of the massive elements , default display The values are all block;
- display:inline; effect : Turn elements into inline elements , Having the characteristics of inline elements . Add : Most inline elements , default display Value inline;
- display:none; effect : Hide current , It doesn't take up space .
summary






边栏推荐
- STM32学习笔记(2)-USART(基础应用1)
- C Introduction à la Bibliothèque des meilleures pratiques linguistiques (Partie 2)
- Add line number field to SQL query results - sqlserver
- Driver.js - 开源无依赖的 web 新手交互引导工具库,功能强大、高度可定制
- C语言最佳实践之库文件介绍(下)
- C# 实现气泡窗体
- 通过反射获取枚举值
- (五)类和对象及类的分文件操作(2)
- Traversing object properties of unknown type
- Web design and development, efficient web development
猜你喜欢

向上滑动导航固定头部

绿盟数据库防火墙(DAS-FW)获得鲲鹏Validated认证

Surrender firehouse database access: Twitter is ready to meet Musk's requirements

js将时间戳转换成正常时间格式

Driver.js - 开源无依赖的 web 新手交互引导工具库,功能强大、高度可定制

文档提升计划第二期|OceanBase 邀您一起进行文档共建

实战案例,深入剖析

Green Alliance database firewall (das-fw) has obtained Kunpeng validated certification

IndexedDB 数据库的使用

(4) Classes and objects (1)
随机推荐
Introduction to the library of C language best practices (Part 2)
漏扫工具学习笔记
JS judgment includes: includes
(1) Pretreatment summary
Green Alliance database firewall (das-fw) has obtained Kunpeng validated certification
Dom4j parsing XML
Collected data, must see
uni-app解析银行卡(支付宝)返回form表单,唤起支付宝界面
【云图说】每个成功的业务系统都离不开APIG的保驾护航
向上滑动导航固定头部
Transfomer self implementation and official library
Building a trusted base for digital economy 𞓜 2022 trusted database summit will be held soon
C Introduction à la Bibliothèque des meilleures pratiques linguistiques (Partie 2)
Surrender firehouse database access: Twitter is ready to meet Musk's requirements
好文分享|48小时敏捷开发攻略
4.25 million budget bidding: centralized procurement of onsite maintenance services for Oracle, teledb, telepg and other core system databases of Jiangsu Telecom
"Yi +" open source program - Design and practice of low delay player based on webrtc
eseses
[required] analysis of the real problem
ZipOutputStream使用