CSS सूचक-घटनाएँ संपत्ति
उदाहरण
सेट करें कि किसी तत्व को सूचक घटनाओं पर प्रतिक्रिया करनी चाहिए या नहीं:
div.ex1 {
pointer-events: none;
}
div.ex2 {
pointer-events: auto;
}
परिभाषा और उपयोग
pointer-events
संपत्ति परिभाषित करती है कि कोई तत्व सूचक घटनाओं पर प्रतिक्रिया करता है या नहीं ।
डिफ़ॉल्ट मान: | ऑटो |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं , एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.pointerEvents="none" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
pointer-events | 2.0 | 11.0 | 3.6 | 4.0 | 9.0 |
सीएसएस सिंटेक्स
pointer-events: auto|none;
सम्पत्ति की कीमत
Property Value | Description |
---|---|
auto | The element reacts to pointer events, like :hover and click. This is default |
none | The element does not react to pointer events |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |