Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> HTML

HTML DOM Style columnRuleWidth प्रॉपर्टी


HTML DOM columnRuleWidth प्रॉपर्टी का उपयोग कॉलम नियम की चौड़ाई को सेट या प्राप्त करने के लिए किया जाता है।

सिंटैक्स निम्नलिखित है:

columnRuleWidth प्रॉपर्टी सेट करना:

object.style.columnRuleWidth = "medium|thin|thick|length|initial|inherit"

उपरोक्त प्रॉपर्टी मान निम्नलिखित हैं:

मान
विवरण
thinयह एक पतला नियम निर्दिष्ट करता है।
mediumयह मध्यम नियम निर्दिष्ट करता है और यह डिफ़ॉल्ट मान है।
thickयह एक मोटा नियम निर्दिष्ट करता है।
lengthलंबाई इकाइयों में नियम की चौड़ाई निर्दिष्ट करने के लिए उपयोग किया जाता है।
initialइस प्रॉपर्टी को प्रारंभिक मान पर सेट करने के लिए।
inheritमूल तत्व के प्रॉपर्टी मान को विरासत में लेने के लिए।

आइए columnRuleWidth प्रॉपर्टी के लिए एक उदाहरण देखें:

उदाहरण

<!DOCTYPE html> <html> <head> <style>    #DIV1{       padding: 5px;       column-count: 5;       column-rule-width: 9px;       column-rule-color: lightblue;       column-rule-style: solid;    } </style> <script>    function changeColumnRuleWidth(){       document.getElementById("DIV1").style.columnRuleWidth="3px";       document.getElementById("Sample").innerHTML="कॉलम नियम की चौड़ाई अब कम हो गई है";    } </script> </head> <body>    <div id="DIV1">       <img src="https://www.tutorialspoint.com/images/Swift.png"><br/>       <img src="https://www.tutorialspoint.com/images/xamarian.png"><br/>       <img src="https://www.tutorialspoint.com/images/pl-sql.png"><br/>       <img src="https://www.tutorialspoint.com/images/asp-net.png"><br/>       <img src="https://www.tutorialspoint.com/images/powerbi.png"><br/>       <img src="https://www.tutorialspoint.com/images/Tableau.png"><br/>       <img src="https://www.tutorialspoint.com/images/Big-Data-Analytics.png"><br/>       <img src="https://www.tutorialspoint.com/images/microsoftproject.png">       <img src="https://www.tutorialspoint.com/images/QlikView.png"><br/>       <img src="https://www.tutorialspoint.com/images/hadoop.png">    </div>    <p>नीचे दिए गए बटन पर क्लिक करके उपरोक्त div कॉलम नियम चौड़ाई बदलें</p>    <button onclick="changeColumnRuleWidth()">कॉलम नियम चौड़ाई बदलें</button>    <p id="Sample"></p> </body> </html>

आउटपुट

HTML DOM Style columnRuleWidth प्रॉपर्टी

कॉलम नियम चौड़ाई बदलें बटन पर क्लिक करने पर:

HTML DOM Style columnRuleWidth प्रॉपर्टी


  1. HTML DOM Style columns प्रॉपर्टी HTML DOM Style columns प्रॉपर्टी

    HTML DOM columns प्रॉपर्टी का उपयोग columnWidth और columnCount प्रॉपर्टी में हेरफेर करने के लिए किया जाता है।सिंटैक्स निम्नलिखित है:columns प्रॉपर्टी सेट करना:object.style.columns = auto|column-width column-count|initial|inheritउपरोक्त प्रॉपर्टी मान निम्नलिखित हैं:मानविवरणAutoयह column-width और colu

  1. HTML DOM Style columnRuleStyle प्रॉपर्टी HTML DOM Style columnRuleStyle प्रॉपर्टी

    HTML DOM Style columnRuleStyle प्रॉपर्टी का उपयोग कॉलम नियम की शैली को परिभाषित या प्राप्त करने के लिए किया जाता है।सिंटैक्स निम्नलिखित है:columnRuleStyle प्रॉपर्टी सेट करना:object.style.columnRuleStyle = none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset| initial|inheritउपरोक्त प्रॉपर

  1. HTML DOM Style columnRuleColor प्रॉपर्टी HTML DOM Style columnRuleColor प्रॉपर्टी

    HTML DOM columnRuleColor प्रॉपर्टी का उपयोग कॉलम के बीच नियम के रंग को सेट या प्राप्त करने के लिए किया जाता है।सिंटैक्स निम्नलिखित है:columnRuleColor प्रॉपर्टी सेट करना:object.style.columnRuleColor = color|initial|inheritयहां, रंग नियम के रंग को निर्दिष्ट करता है। Initial मान को डिफ़ॉल्ट मान पर सेट