0

我在 GWT 中创建了一个 DecoratedTabPanel

 <g:HorizontalPanel ui:field="hpnlTab">
            <g:DecoratedTabPanel animationEnabled="true" ui:field="tabQuran" width="499px" height="281px">
                <g:Tab text="Quran">
                    <g:HTMLPanel width="249px" height="262px" ui:field="quranTab">
                    <!--  <div class="{style.qFrameMiddle}" id="middleFrame">-->
            <div  ui:field="quranText" class="{style.quranText}">       

            </div> 

        </g:HTMLPanel>
                </g:Tab>
                <g:Tab text="Translation">
                    <g:HTMLPanel width="7cm" height="249px"/>
                </g:Tab>
            </g:DecoratedTabPanel>
        </g:HorizontalPanel>

它工作正常,显示单词测试,当我点击测试时,它也会打开 HtmlPanel,但问题是,它没有显示 TABS,只是一个简单的文本,看图片

谢谢

在此处输入图像描述

4

1 回答 1

0

确保在您的 ModuleName.gwt.xml 中继承了标准主题或其他主题:

<inherits name="com.google.gwt.user.theme.standard.Standard"/>

或者你在某个地方覆盖了它的默认样式。

于 2012-04-17T07:30:37.033 回答