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

边栏推荐
- recursion and iteration
- pgbench基准测试《postgresql》
- ValueError: Using a target size (torch.Size([64])) that is different to the input size (torch.Size([
- 2020年国内十大IC设计企业曝光!这五大产业挑战仍有待突破!
- Kotlin function nesting
- Invest 50billion yuan! SMIC capital was officially registered!
- 【C语言】三子棋小游戏实现
- The industry's first cloud native security detection dual model! Safety dog heavyweight report appears at the digital China Construction Summit
- Wheel 6: qserialport serial port data transceiver
- Advanced C language: pointer (3)
猜你喜欢

MySQL数据库的基本概念以及MySQL8.0版本的部署(一)

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

Console.log() console display... Solution
![[image segmentation] vein segmentation based on directional valley detection with matlab code](/img/82/7b7b761c975cd5c2f5b8f3e43592d2.png)
[image segmentation] vein segmentation based on directional valley detection with matlab code

Target detection notes fast r-cnn

sql优化常用的几种方法

这个胶水有多强呢?

《Shortening passengers’ travel time A dynamic metro train scheduling approach using deep reinforcem》

No code development platform management background tutorial

can‘t convert cuda:0 device type tensor to numpy. Use Tensor. cpu() to copy the tensor to host memory
随机推荐
No code development platform management background tutorial
6 个超级良心的开源教程!
The Gerrit local code is associated to the remote warehouse
美国FCC提供16亿美元资助本国运营商移除华为和中兴设备
GCD summary
定了!哪吒S全系产品将于7月31日上市发售
投资500亿元!中芯京城正式注册成立!
Thesis reading (0) - alexnet of classification
The applet vant webapp component is missing, and the referenced component reports an error
一种分布式深度学习编程新范式:Global Tensor
二叉搜索树
cannot resize variables that require grad
Record a question about the order of trigonometric function exchange integrals
无代码开发平台通讯录入门教程
Pgbench benchmark PostgreSQL
Apk signature.Apk version information
Terminal output G_ Debug() information
Bullet frame mask layer "recommended collection"
[physical application] atmospheric absorption loss with matlab code
业界首创云原生安全检测双模型!安全狗重磅报告亮相数字中国建设峰会