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

边栏推荐
- 无代码开发平台通讯录入门教程
- c语言进阶篇:指针(三)
- c语言进阶篇:指针(二)
- 18 diagrams, intuitive understanding of neural networks, manifolds and topologies
- WebView optimization
- 6 open source tutorials of super conscience!
- Wheel 6: qserialport serial port data transceiver
- 程序员成长第三十篇:识别真伪需求的神器
- Research on cookies in WebView
- Recurrent neural network (RNN)
猜你喜欢

MySQL数据库的基本概念以及MySQL8.0版本的部署(一)
![[physical application] Wake induced dynamic simulation of underwater floating wind turbine wind field with matlab code](/img/31/e4cd4c261a7fc5cfa731976314530b.png)
[physical application] Wake induced dynamic simulation of underwater floating wind turbine wind field with matlab code

Applet, JS, transfer object jump transfer parameter problem

Sdwebimage source code combs 5 author motivation, modifies directory, and changes inheritance relationship

《Shortening passengers’ travel time A dynamic metro train scheduling approach using deep reinforcem》
![[C language] implementation of three piece chess games](/img/53/7ee14e604c06fd77d65af29d6d92b8.png)
[C language] implementation of three piece chess games

MySQL foundation - data query

c语言进阶篇:指针(三)

Target detection notes fast r-cnn

The Gerrit local code is associated to the remote warehouse
随机推荐
Servlet的使用手把手教学(一)
DirectX修复工具下载(exagear模拟器数据包在哪里)
MySQL常用的日期时间函数
IOS interview
Thesis reading (0) - alexnet of classification
Anr questions often asked in Android interviews
Recurrent neural network (RNN)
Empowering Chinese core entrepreneurs! See how Moore elite solves the development problems of small and medium-sized chip Enterprises
软件测试工具fiddler postman jmeter charlse核心功能总结
Shell script foundation - shell operation principle + variable and array definitions
PCA learning
The applet vant webapp component is missing, and the referenced component reports an error
Istio微服务治理网格的全方面可视化监控(微服务架构展示、资源监控、流量监控、链路监控)
华为无线设备配置利用WDS技术部署WLAN业务
RuntimeError: set_ sizes_ contiguous is not allowed on a Tensor created from .data or .detach().
定了!哪吒S全系产品将于7月31日上市发售
Thesis reading (2) - vggnet of classification
cannot resize variables that require grad
This year, MediaTek 5g chip shipments are expected to reach 50million sets!
Sqlilabs-2 (breakthrough record)