स्टाइल बॉर्डरलेफ्टस्टाइल प्रॉपर्टी
उदाहरण
<div> तत्व में "ठोस" बायां बॉर्डर जोड़ें:
document.getElementById("myDiv").style.borderLeftStyle = "solid";
परिभाषा और उपयोग
BorderLeftStyle गुण किसी तत्व के बाएँ बॉर्डर की शैली को सेट या लौटाता है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
borderLeftStyle | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
सीमा लेफ्ट स्टाइल संपत्ति लौटाएं:
object.style.borderLeftStyle
सीमा लेफ्ट स्टाइल संपत्ति सेट करें:
object.style.borderLeftStyle = value
सम्पत्ति की कीमत
Value | Description |
---|---|
none | Defines no border. This is default |
hidden | Same as "none", except in border conflict resolution for table elements |
dotted | Defines a dotted border |
dashed | Defines a dashed border |
solid | Defines a solid border |
double | Defines two borders. The width of the two borders are the same as the border-width value |
groove | Defines a 3D grooved border. The effect depends on the border-color value |
ridge | Defines a 3D ridged border. The effect depends on the border-color value |
inset | Defines a 3D inset border. The effect depends on the border-color value |
outset | Defines a 3D outset border. The effect depends on the border-color value |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, तत्व की बाईं सीमा की शैली का प्रतिनिधित्व करता है |
सीएसएस संस्करण | सीएसएस 1 |
और ज्यादा उदाहरण
उदाहरण
<div> तत्व की बाईं सीमा की शैली को "बिंदीदार" में बदलें:
document.getElementById("myDiv").style.borderLeftStyle = "dotted";
उदाहरण
<div> तत्व की बाईं सीमा शैली लौटाएं:
alert(document.getElementById("myDiv").style.borderLeftStyle);
उदाहरण
सभी विभिन्न मूल्यों का प्रदर्शन:
var listValue = selectTag.options[selectTag.selectedIndex].text;
document.getElementById("myDiv").style.borderLeftStyle = listValue;
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस बॉर्डर
CSS संदर्भ: बॉर्डर-लेफ्ट-स्टाइल प्रॉपर्टी
एचटीएमएल डोम संदर्भ: सीमा संपत्ति