As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center作为指导。
                            
                        
                    
                
                7年前关闭。
            
        

我在html项目gwt <div id="myproject"></div>中有一个div,如何将其添加到特定的垂直面板中?

最佳答案

使用此代码:

VerticalPanel verticalPanel = new VerticalPanel();

verticalPanel.add(RootPanel.get("myproject"));

RootPanel.get().add(verticalPanel);

10-06 03:14