In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what is the use of the pointer-events attribute in css. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
When an absolute positioning element covers a link or adds an element of an event handle, the default behavior (page jump) or element event of the link will not be triggered.
Firefox3.6+/Safari4+/Chrome now supports a css attribute called pointer-events. Use this attribute to determine whether you can penetrate an absolute positioning element to trigger some behavior of the following elements. As follows:
CSS:pointer-events
.overlay1 {
Width:80px
Height:20px
Background:gold
Position:absolute
Top:5px
Left:5px
Opacity:0.5
}
.overlay2 {
Width:80px
Height:20px
Background:gold
Position:absolute
Top:40px
Left:5px
Opacity:0.5
}
.pointer {pointer-events:none;}
_ window.onload=function () {
Document.getElementById ('chx'). Onclick=function () {document.getElementById (' a') .className
= "overlay1" + ((this.checked)? "pointer": "")
Document.getElementById ('b'). ClassName
= "overlay2" + ((this.checked)? "pointer": "")
}
}
Php Chinese website
Php Chinese website
Turn on penetrating click
This is the end of this article on "what is the use of pointer-events attributes in css". 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, please share it out 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.