-1

How to change the background color of a web page in GWT? I am coding in MVP and using absolute panel as the base panel e.g.

AbsolutePanel absolutePanel;
etc..
absolutePanel = new AbsolutePanel();
absolutePanel.setSize(Window.getClientWidth() + "px", Window.getClientHeight() +        "px");
absolutePanel.addStyleName("boardBackground");
initWidget(absolutePanel);

The problem is when I ran the program, there is a white border around the panel, is there other way to color the whole page? Thanks.

4

1 回答 1

0

请详细说明问题

如果您想更改网页背景颜色,请在您的应用程序 HTML 文件中进行。如果您想为您的面板执行此操作,请使用样式名称并做任何您想做的事情......如果样式在您的 css 类中被覆盖,请使用!important

于 2012-12-09T16:09:47.513 回答