当前位置:网站首页>The functions and differences of display, visibility and overflow
The functions and differences of display, visibility and overflow
2022-07-28 23:18:00 【Corner sheep】
display, visibility, overflow The functions and differences of the three
display
html You can classify elements into inline elements 、 There are three kinds of block elements and inline block elements ,
Use display Attribute can transform the three at will
none Hide objects ** After hiding , No more places .**
display:inline; Convert to inline elements
display:block; Convert to block element
display:inline-block; Convert to inline block elements
There are many more values , But not often , Such as table etc.
In line block feature
Support all styles
Width and height can be set , If not set , The width and height of the block element in the row is the width and height of the content
Don't monopolize a line , Display line by line with other inline elements
The default arrangement is from left to right
Code wrap , There will be a gap between the block elements in the row
Hidden elements
visibility
visibility:visible ; Objects are visible
visibility:hidden; Object hiding
characteristic : After hiding , Keep the original position .
overflow
visible The default value is , Overflow content will not be pruned , It will appear outside the element box
hidden Do not show overflow
scroll Scroll bar to display the overflow content in the element , Show scroll bar even if there is no overflow
auto Automatically handle overflows , If it overflows, the scroll bar is displayed , If there is no overflow , The normal display is
overflow: hidden Do not show overflow
overflow: hidden Only the overflow part is hidden , For parent elements
overflow: hidden Often used for text overflow , Element overflow in document stream
display:none This element will not be shown
display:none It will hide all the elements , For element itself
display:none Commonly used in drop-down boxes , Box out of document flow , Such as JD navigation drop-down box

边栏推荐
- The US FCC provided us $1.6 billion to support domestic operators to remove Huawei and ZTE equipment
- [physical application] atmospheric absorption loss with matlab code
- Kotlin JVM annotation
- Advanced C language: pointer (2)
- A simple neural network model based on MLP full connection layer
- 定了!哪吒S全系产品将于7月31日上市发售
- Sqlilabs-1 (breakthrough record)
- Target detection notes fast r-cnn
- Hbuilderx shortcut key
- 即将获售高通、联发科芯片,荣耀要超越华为做国内第一?
猜你喜欢

【图像分割】基于方向谷形检测实现静脉纹路分割附MATLAB代码

以价换量却遭遇销量“六连跌”,不再安全的沃尔沃还能翻身吗?

6 open source tutorials of super conscience!

Record a question about the order of trigonometric function exchange integrals

Several common methods of SQL optimization

Sqlilabs-1 (breakthrough record)

After reading MySQL database advanced practice (SQL xiaoxuzhu)

TypeError: can‘t convert cuda:0 device type tensor to numpy. Use Tensor. cpu() to copy the tensor to

安全狗入选《云安全全景图2.0》多个细项
![[radar] radar signal online sorting based on kernel clustering with matlab code](/img/56/1f8e8690b47fc4a1f101d4e530b87f.png)
[radar] radar signal online sorting based on kernel clustering with matlab code
随机推荐
Leetcode 199. right view of binary tree
Target detection notes -yolo
无代码开发平台通讯录入门教程
【物理应用】大气吸收损耗附matlab代码
定了!哪吒S全系产品将于7月31日上市发售
Vant web app installation reference
pg_ Installation and use of RMAN "PostgreSQL"
终端输出g_debug()信息
NPM run dev, automatically open the browser after running the project
6 open source tutorials of super conscience!
今年联发科5G芯片出货有望达到5000万套!
MySQL foundation - advanced functions
Record a question about the order of trigonometric function exchange integrals
leetcode101. 对称二叉树
无代码开发平台通讯录导出入门教程
一种分布式深度学习编程新范式:Global Tensor
MySQL Basics - Introduction and basic instructions
18张图,直观理解神经网络、流形和拓扑
Hands on Teaching of servlet use (1)
Retrofit Usage Summary