स्टाइल बॉर्डरलेफ्टकलर प्रॉपर्टी
उदाहरण
<div> तत्व के बाएं बॉर्डर का रंग लाल में बदलें:
document.getElementById("myDiv").style.borderLeftColor = "red";
परिभाषा और उपयोग
BorderLeftColor गुण किसी तत्व के बाएँ बॉर्डर का रंग सेट या लौटाता है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
borderLeftColor | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
बॉर्डर लेफ्टकोलर संपत्ति लौटाएं:
object.style.borderLeftColor
BorderLeftColor प्रॉपर्टी सेट करें:
object.style.borderLeftColor = "color|transparent|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
color | Specifies the color of the left 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 left 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.borderLeftColor);
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस बॉर्डर
CSS संदर्भ: बॉर्डर-लेफ्ट-कलर प्रॉपर्टी
एचटीएमएल डोम संदर्भ: सीमा संपत्ति