GWT theme style overrides my css style

前端 未结 6 1701
陌清茗
陌清茗 2020-11-27 05:21

I have some html files with their own css. I want to use them in a gwt application so i copied the html and the css files in the application.

The problem is when i o

6条回答
  •  没有蜡笔的小新
    2020-11-27 06:06

    You can override the styles of GWT by using the keyword !important in all your css of the html files, for example, if one of your html file contains this css:

    background-color:#000000;
    

    Then you should write it like this:

    background-color:#000000 !important;
    

    Do the same for all your styles in html files.

    Note that using !important is not the best way, if you can find any better alternatives you should go for them first.

提交回复
热议问题