CSS मास्क-आकार की संपत्ति
उदाहरण
मुखौटा परत छवि के लिए आकार (प्रतिशत में) सेट करें:
.mask1 {
-webkit-mask-image: url(w3logo.png);
mask-image: url(w3logo.png);
-webkit-mask-size: 70%;
mask-size: 70%;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
}
नीचे और अधिक "इसे स्वयं आज़माएं" उदाहरण।
परिभाषा और उपयोग
mask-size
संपत्ति मुखौटा परत छवि के आकार को निर्दिष्ट करती है ।
डिफ़ॉल्ट मान: | ऑटो |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.maskSize="100px 200px" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
-वेबकिट के बाद की संख्याएं- उपसर्ग के साथ काम करने वाले पहले संस्करण को निर्दिष्ट करें।
Property | |||||
---|---|---|---|---|---|
mask-image | 4.0 -webkit- | 79.0 -webkit- | 53.0 | 4.0 -webkit- | 15.0 -webkit- |
सीएसएस सिंटेक्स
mask-image: auto|size|contain|cover|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
auto | This is default |
size | Specifies the size of the mask image in px, em, etc, or in % |
contain | Scales the mask image in a way that both its width and its height fit inside the container |
cover | Scales the mask image in a way that both its width and its height cover the container |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
और ज्यादा उदाहरण
उदाहरण
मुखौटा परत छवि के लिए आकार (पिक्सेल में) सेट करें:
.mask1 {
-webkit-mask-image: url(w3logo.png);
mask-image: url(w3logo.png);
-webkit-mask-size: 200px 200px;
mask-size: 200px 200px;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
}
संबंधित पृष्ठ
सीएसएस संदर्भ: मुखौटा-छवि संपत्ति
CSS संदर्भ: मास्क-मोड गुण
सीएसएस संदर्भ: मुखौटा-मूल संपत्ति
सीएसएस संदर्भ: मुखौटा-स्थिति संपत्ति
CSS संदर्भ: मास्क-रिपीट प्रॉपर्टी
सीएसएस ट्यूटोरियल: सीएसएस मास्किंग