当前位置:网站首页>Visibility:hidden and display:none
Visibility:hidden and display:none
2022-07-24 06:37:00 【Slugs are not alone】
visibility:hidden and display:none The difference between
1、 Inherit :
display It's not inheritance , and visibility Is an inherited property .
Of descendant elements visibility Attribute if it exists , Will not inherit ; If it does not exist , Will inherit from the parent element visibility Value .
The parent element visibility by hidden But the child element visibility by visble, Then the child elements are still visible , Subelement visibility If the attribute does not exist, the child element is not visible . And the parent element display Property set to none after , All child elements are invisible .
2、 Space :
Set up display: none after , The element appears as if it does not exist , But it still exists in the document object model ; Set up visibility:hidden after , The space occupied by this element will be occupied by blank .
3、 Rendering :
Whether to re render after changing the value of page related attributes :display: none Rendering ,visibility:hidden No rendering .
边栏推荐
- System safety and Application
- [251] common test tools
- 微信TBS在线安装内核失败的解决方法
- Li Kou 986. Intersection of interval lists
- Pycharm set code template
- [award issuance] the results of the first essay solicitation activity in oneos zone were announced
- ES10 subtotal flat and flatmap
- Leetcode sword finger offer JZ9 dual stack implementation queue
- Responsive page
- Customize MVC 3.0
猜你喜欢

Responsive page

服务器硬件及RAID配置实战

UE4 reload system 1. basic principle of reload system

Leetcode refers to the duplicate number in the offer jz3 array

项目上复盘引导问题清单

Data set and pre training model

Leetcode sword finger offer jz23: the entry node of the link in the linked list

JSP tag

JSP tag 02

Maximum value of jz47 gifts (dynamic planning ideas)
随机推荐
Yiwen node installation, download and configuration
LVM and disk quota
手动安装Apache
SSH远程访问及控制
【217】#!/ The meaning of usr/bin/env
实验:磁盘配额操作
A batch of interview questions and answers_ 20180403 latest arrangement
Rsync (I): basic commands and usage
Polkadot | interprets how liberty plan, which subverts traditional social media, will be launched in Poka
进行挂载永久挂载后无法开机
JSP tag
mysql 忘记退出直接关闭窗口现在要删除整个文件夹如何删除
Metersphere one stop open source continuous testing platform
API process and code structure
Modeling of XML
Log collection and analysis platform
CentOS操作系统安全加固
Summary of ten common vulnerabilities (principle, harm, defense)
General paging 01
Promise (try to implement a promise by yourself) more detailed comments and other interfaces are not completed yet. Let's continue next time.