我已将Sencha示例源(link)复制到我的代码中,如果我在Firefox中打开应用程序,则会在标题页头附近出现奇怪的黑点。单击此点可激活旁边的选项卡。在Chromium看起来都不错。
代码示例:
public void onModuleLoad() {
VerticalPanel vp = new VerticalPanel();
vp.setSpacing(10);
String txt = "Lorem Ipsum is simply dummy text of the printing and typesetting industry."
+ " Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.";
TabPanel folder = new TabPanel();
folder.setWidth(450);
HTML shortText = new HTML(txt);
shortText.addStyleName("pad-text");
folder.add(shortText, "Short Text");
HTML longText = new HTML(txt + "<br><br>" + txt);
longText.addStyleName("pad-text");
folder.add(longText, "Long Text");
vp.add(folder);
RootPanel.get().add(vp);
}
火狐:
铬:
我该怎么做才能避免这个错误?
答案 0 :(得分:0)
终于找到了解决方案。我需要的只是css添加像
* {
margin: 2;
padding: 0;
}
ul {
list-style-type: none;
margin: auto;
}
UPD:错了。 Setup.txt告诉
2b. Add a stylesheet link to reset.css and ensure it is the first referenced stylesheet:
<link rel="stylesheet" type="text/css" href="{module name}/reset.css" />