This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center
                            
                        
                    
                
                                6年前关闭。
            
                    
我有两个按钮,并且不希望它们之间有一个空格。但是以下方法不起作用:

<gwt:FlowPanel styleName="{style.pad}">
    <gwt:Button text="foo" />
    <gwt:Button text="bar" />
</gwt:FlowPanel>

<ui:style>
    .pad .gwt-Button {
            margin-right: 20px !important;
    }
</ui:style>


结果:按钮并排对齐,它们之间没有空格。为什么??

最佳答案

知道了:我必须在ui:style声明中使用@external gwt-Button;

09-11 19:36
查看更多