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

边栏推荐
- 无代码开发平台通讯录导出入门教程
- 赋能中国芯创业者!看摩尔精英如何破解中小芯片企业发展难题
- Source code analysis of kotlin collaborative process startup
- Mgr.exe virus caused the startup program to fail
- Sdwebimage source code combs 5 author motivation, modifies directory, and changes inheritance relationship
- [copy] Internet terms, abbreviations, abbreviations
- Target detection notes -yolo
- A new paradigm of distributed deep learning programming: Global tensor
- TypeError: can‘t convert cuda:0 device type tensor to numpy. Use Tensor. cpu() to copy the tensor to
- 【数据库】
猜你喜欢

cannot resize variables that require grad

Advanced C language: pointer (3)

Thesis reading (2) - vggnet of classification

Target detection notes fast r-cnn

There are four ways for Nacos to configure hot updates and multiple ways to read project configuration files, @value, @refreshscope, @nacosconfigurationproperties

【物理应用】大气吸收损耗附matlab代码

无代码开发平台通讯录导出入门教程

After reading MySQL database advanced practice (SQL xiaoxuzhu)

Advanced C language: pointer (2)

Retrofit Usage Summary
随机推荐
Thesis reading (3) - googlenet of classification
MySQL foundation - advanced functions
Nacos配置热更新的4种方式、读取项目配置文件的多种方式,@value,@RefreshScope,@NacosConfigurationProperties
Reading of "robust and communication efficient federated learning from non-i.i.d. data"
Istio微服务治理网格的全方面可视化监控(微服务架构展示、资源监控、流量监控、链路监控)
Servlet的使用手把手教学(一)
cnpm安装步骤
Written questions and answers of software test interview (software test question bank)
WebView optimization
芯华章宣布完成超2亿A轮融资,全面布局EDA2.0研发
Advanced C language: pointer (2)
The applet vant webapp component is missing, and the referenced component reports an error
Shell script foundation - shell operation principle + variable and array definitions
《MySQL数据库进阶实战》读后感(SQL 小虚竹)
mgr.exe病毒导致启动程序启动失败
This year, MediaTek 5g chip shipments are expected to reach 50million sets!
CGLIb 创建代理
The US FCC provided us $1.6 billion to support domestic operators to remove Huawei and ZTE equipment
High quality subroutine 2 - high cohesion
Introduction to original code, inverse code and complement code