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

边栏推荐
- Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
- xshell7,xftp7个人免费版官方下载,无需破解,免激活,下载即可使用
- Apk signature.Apk version information
- 【图像分割】基于方向谷形检测实现静脉纹路分割附MATLAB代码
- Learning experience sharing 5: yolov5 dataset division and Yolo format conversion
- Empowering Chinese core entrepreneurs! See how Moore elite solves the development problems of small and medium-sized chip Enterprises
- recursion and iteration
- Wheel 6: qserialport serial port data transceiver
- 芯华章宣布完成超2亿A轮融资,全面布局EDA2.0研发
- 无代码开发平台管理后台入门教程
猜你喜欢

After reading MySQL database advanced practice (SQL xiaoxuzhu)

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

Istio微服务治理网格的全方面可视化监控(微服务架构展示、资源监控、流量监控、链路监控)

Record a question about the order of trigonometric function exchange integrals

Thesis reading (1) - zfnet of classification

Servlet的使用手把手教学(一)

Thesis reading (2) - vggnet of classification

CGLIb 创建代理

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

参加竞赛同学们的留言 : 第十七届的记忆
随机推荐
pgbench基准测试《postgresql》
cannot resize variables that require grad
Record a question about the order of trigonometric function exchange integrals
RouYi-Cloud平台 ---项目的启动、登录功能是怎么实现的、怎么样创建新模块
Symbol symbol type
There are four ways for Nacos to configure hot updates and multiple ways to read project configuration files, @value, @refreshscope, @nacosconfigurationproperties
希捷发布全新RISC-V架构处理器:机械硬盘相关性能暴涨3倍
After reading MySQL database advanced practice (SQL xiaoxuzhu)
Rouyi cloud platform - how to realize the launch and login functions of the project and how to create new modules
The US FCC provided us $1.6 billion to support domestic operators to remove Huawei and ZTE equipment
二叉搜索树
Thesis reading (3) - googlenet of classification
The Gerrit local code is associated to the remote warehouse
Applet, JS, transfer object jump transfer parameter problem
软件测试面试笔试题及答案(软件测试题库)
投资500亿元!中芯京城正式注册成立!
Invest 50billion yuan! SMIC capital was officially registered!
A new MPLS note from quigo, which must be read when taking the IE exam ---- quigo of Shangwen network
MySQL数据库的基本概念以及MySQL8.0版本的部署(一)
leetcode 199. 二叉树的右视图