Override GWT Styling

后端 未结 12 2266
栀梦
栀梦 2020-12-13 18:53

I had a beautiful pure HTML mockup for a webpage that I am now recreating in GWT. I\'m attempting to use the same css in my GWT app, but that\'s not working well for me. G

12条回答
  •  孤城傲影
    2020-12-13 19:34

    You can use < !important > declaration. It's one of easiest choices

    --- GWT ----

    .gwt-PopupPanel {
    border: 3px solid #E7E7E7;
    padding: 3px;
    background: white;
    }
    

    --- Custom style ---

    .gwt-PopupPanel {
    padding: 0px !important;
    }
    

    --- Result ---

    .gwt-PopupPanel {
    border: 3px solid #E7E7E7;
    padding: 0px;
    background: white;
    }
    

提交回复
热议问题