शैली तालिका लेआउट संपत्ति
उदाहरण
एक निश्चित तालिका लेआउट सेट करें:
document.getElementById("myTable").style.tableLayout = "fixed";
परिभाषा और उपयोग
टेबललेआउट प्रॉपर्टी टेबल सेल, रो और कॉलम को लेआउट करने का तरीका सेट या रिटर्न करती है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
tableLayout | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
तालिका लेआउट संपत्ति लौटाएं:
object.style.tableLayout
तालिका लेआउट गुण सेट करें:
object.style.tableLayout = "auto|fixed|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
auto | Column width is set by the widest unbreakable content. This is default.
|
fixed | Column width is set by the width of table and columns (not the content of the cells)
|
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | ऑटो |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, तालिका के लिए उपयोग किए जाने वाले टेबल लेआउट एल्गोरिदम का प्रतिनिधित्व करता है |
सीएसएस संस्करण | सीएसएस 2 |
और ज्यादा उदाहरण
उदाहरण
तालिका लेआउट लौटाएं:
alert(document.getElementById("myTable").style.tableLayout);
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस टेबल
CSS संदर्भ: टेबल-लेआउट गुण
❮ स्टाइल ऑब्जेक्ट