स्टाइल बॉर्डरराइटकलर प्रॉपर्टी
उदाहरण
<div> तत्व के दाहिने बॉर्डर का रंग लाल में बदलें:
document.getElementById("myDiv").style.borderRightColor = "red";
परिभाषा और उपयोग
BorderRightColor गुण किसी तत्व के दाएँ बॉर्डर का रंग सेट या लौटाता है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
borderRightColor | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
बॉर्डरराइट रंग संपत्ति लौटाएं:
object.style.borderRightColor
BorderRightColor प्रॉपर्टी सेट करें:
object.style.borderRightColor = "color|transparent|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
color | Specifies the color of the right border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element |
transparent | The color of the right border is transparent (underlying content will shine through) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | वर्तमान रंग |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, एक तत्व की दाहिनी सीमा के रंग का प्रतिनिधित्व करता है |
सीएसएस संस्करण | सीएसएस 1 |
और ज्यादा उदाहरण
उदाहरण
<div> तत्व का दायां बॉर्डर रंग लौटाएं:
alert(document.getElementById("myDiv").style.borderRightColor);
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस बॉर्डर
CSS संदर्भ: बॉर्डर-राइट-कलर प्रॉपर्टी
एचटीएमएल डोम संदर्भ: सीमा संपत्ति
❮ स्टाइल ऑब्जेक्ट