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