HTML DOM Style columnRuleStyle प्रॉपर्टी का उपयोग कॉलम नियम की शैली को परिभाषित करने या वापस करने के लिए किया जाता है।
−
. के लिए वाक्य रचना निम्नलिखित हैcolumnRuleStyle प्रॉपर्टी सेट करना -
object.style.columnRuleStyle = "none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset| initial|inherit"
उपरोक्त संपत्ति मूल्यों को इस प्रकार समझाया गया है -
| मान | <वें शैली ="पाठ-संरेखण:केंद्र;">विवरण|
|---|---|
| कोई नहीं | यह कोई नियम निर्दिष्ट करने वाला डिफ़ॉल्ट मान है। |
| छिपा हुआ | यह "कोई नहीं" जैसा ही है, लेकिन फिर भी नियम स्थान लेगा। यह मूल रूप से पारदर्शी है लेकिन फिर भी है। |
| बिंदीदार | यह एक बिंदीदार नियम को परिभाषित करता है। |
| धराशायी | यह एक धराशायी नियम को परिभाषित करता है। |
| ठोस | यह एक ठोस नियम को परिभाषित करता है। |
| डबल | यह दोहरे नियम को परिभाषित करता है। |
| नाली | यह एक 3डी ग्रूव नियम को परिभाषित करता है और रिज के विपरीत है। |
| रिज | यह एक 3D मुक्त नियम को परिभाषित करता है और खांचे के विपरीत है |
| सम्मिलित करें | यह एक 3D नियम सीमा को परिभाषित करता है और प्रभाव ऐसा लगता है जैसे यह एम्बेडेड है। यह शुरुआत के विपरीत प्रभाव पैदा करता है। |
आइए हम columnRuleStyle प्रॉपर्टी के लिए एक उदाहरण देखें -
उदाहरण
<!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 changeColumnRuleStyle(){
document.getElementById("DIV1").style.columnRuleStyle="dashed";
document.getElementById("Sample").innerHTML="The column rule style is now changed.";
}
</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>Change the above div column style by clicking the below button</p>
<button onclick="changeColumnRuleStyle()">Change Column Rule Style</button>
<p id="Sample"></p>
</body>
</html> आउटपुट

“कॉलम नियम शैली बदलें” . पर क्लिक करने पर बटन -
