एक GWT पेड़ मोटे तौर पर इस तरह दिखता है:जीडब्ल्यूटी: वृक्ष पंक्तियों का पैडिंग बदलें?
<div class="gwt-Tree">
<div style="padding-top: 3px; padding-right: 3px;
padding-bottom: 3px; margin-left: 0px;
padding-left: 23px;">
<div style="display:inline;" class="gwt-TreeItem">
<table>
...
</table>
</div>
</div>
<div ...>
</div>
...
</div>
मेरा प्रश्न है: मैं व्यक्तिगत पेड़ पंक्तियों की गद्दी कैसे बदलना चाहिए? मुझे लगता है कि मैं .gwt-Tree > div
के लिए सीएसएस नियमों की स्थापना के साथ कुछ कर सकता हूं लेकिन यह हैकी लगता है। क्या कोई और सुरुचिपूर्ण तरीका है?
समाधान: जाहिर है वहाँ एक और अधिक सुरुचिपूर्ण तरीका नहीं है।
.gwt-Tree > div:first-child {
width: 0px !important;
height: 0px !important;
margin: 0px !important;
padding: 0px !important;
}
.gwt-Tree > div {
padding: 0px 5px !important;
}
.gwt-Tree > div[hidefocus=true] {
width: 0px !important;
height: 0px !important;
margin: 0px !important;
padding: 0px !important;
}
खेद है कि मैं कि नहीं लगता कि मैं क्या कर रहा हूँ है ढूंढ रहे हैं: जो मुझे पहले या तीसरे स्तर के div के सीएसएस को कस्टमाइज़ करने की इजाजत देता है, लेकिन दूसरे स्तर के div नहीं, पैडिंग वाला एक ... – Epaga
आह क्षमा करें - मैंने आपके प्रश्न - संपादित उत्तर को गलत समझा। – easwee