-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi eveyone, I'm trying to change the style of a tabbox with mold="accordion". My code is something like this:
<style> .z-tab-accordion-text{ color:red; font-size:16pt; } </style> <tabbox mold="accordion"> <tabs> ... </tabs> <tabpanels> ... </tabpanels> </tabbox>
it works good for me
following is my code
<window title="My First Window" border="normal" width="200px"> <style> .z-tab-accordion-text{ color:red; font-size:16pt; } </style> <tabbox mold="accordion"> <tabs> <tab label="test" /> </tabs> <tabpanels> <tabpanel></tabpanel> </tabpanels> </tabbox> </window>
Thank tou for your reply, Ryan. I tried your code with copy and paste (nothing modified), but it does not work for me. Which ZK version are you using? I'm using 3.5.1. I tried it with IE and also with Mozilla...
I tried the following code on ZK Live Demo:
<hbox> <style> .z-tab-accordion-text{ color:red; font-size:16pt; } </style> <tabbox width="250px"> <tabs> <tab label="Tab 1" closable="true"/> <tab label="Tab 2" closable="true"/> <tab label="Tab 3" closable="true"/> <tab label="Tab 4" closable="true"/> <tab label="Tab 5" closable="true"/> </tabs> <tabpanels> <tabpanel>This is panel 1</tabpanel> <tabpanel>This is panel 2 The second panel</tabpanel> <tabpanel>This is panel 3</tabpanel> <tabpanel>This is panel 4</tabpanel> <tabpanel>This is panel 5</tabpanel> </tabpanels> </tabbox> <vbox> <tabbox id="tb" width="400px" mold="accordion"> <tabs> <tab label="Tab 1"/> <tab label="Tab 2"/> </tabs> <tabpanels> <tabpanel> <tabbox id="tb2" orient="vertical"> <tabs width="20px"> <tab label="A"/> <tab label="B"/> <tab label="C"/> <tab label="D"/> <tab label="E"/> </tabs> <tabpanels> <tabpanel>This is panel A</tabpanel> <tabpanel>This is panel B</tabpanel> <tabpanel>This is panel C</tabpanel> <tabpanel>This is panel D</tabpanel> <tabpanel>This is panel E</tabpanel> </tabpanels> </tabbox> <checkbox label="Horizonal orient" onCheck='tb2.orient=self.checked?"horizontal":"vertical"'/> </tabpanel> <tabpanel> This is panel 2 The second panel </tabpanel> </tabpanels> </tabbox> <checkbox label="Use light mold" onCheck='tb.mold=self.checked?"accordion-lite":"accordion"'/> </vbox> </hbox>
Asked: 2008-12-09 13:44:34 +0800
Seen: 227 times
Last updated: Dec 10 '08