What is the pointer-events property in css
This article mainly introduces what the pointer-events attribute in css is. The article is very detailed and has certain reference value. Interested friends must read it!
Official grammar:
1. Grammar:
Formal syntax:
pointer-events:visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|none|inherit;
Three values apply to HTML elements:
pointer-events:auto|none|inherit;
2. Initial: Automatic
3. Applicable to: all elements
4. Animation: None
Description: Three values for HTML elements
auto: Default value, indicating that pointer events are enabled; the element responds to pointer events, preventing them from firing on the elements below it.
none: Indicates that pointer events are disabled on the element; in this case, the element will not respond to pointer events, but elements below it can respond to pointer events as if the element did not exist above them.
inherit: Indicates that the element will inherit its point-events value from its parent.
Compatibility of the pointer-events attribute:
CSSpointer-events attribute (HTML only)
When this CSS property is set to "none," it allows the element not to receive hover/click events, but events will occur on anything behind it.
The above is "what is the pointer-events attribute in css" all the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!