In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about what the attributes of hidden elements in html and css are. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Display: none
1. DOM structure: browsers do not render elements of display:none and do not occupy page space
2. Event listening: cannot listen to an element for event
3. Inheritance: it will not be inherited by child elements (display: block will not be displayed when child elements are set)
4. Change: changing the attribute value will cause page rearrangement and redrawing
5. Transition: unable to set transition effect transition: invalid display
Visibility: hidden
1. It will not be rendered, but it will occupy the page space
2. Unable to set event listening on the element
3. It can be inherited, and the child elements can be displayed by setting non-visibility:hidden.
4. Changing the attributes will only cause page rearrangement.
5. Transition:visibility will immediately show that hidden has a transitional effect.
Opacity: 0
1. The element is hidden and will occupy the page space
2. You can set event monitoring
3. It can be inherited, and the child element setting opacity can display
4. Will not redraw nor rearrange
5. Transition: opacity can achieve the transition effect of showing and hiding.
6. Opacity will trigger hardware acceleration
Thank you for reading! This is the end of this article on "what are the attributes of html and css hidden elements". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.