Override GWT Styling

后端 未结 12 2207
栀梦
栀梦 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:31

    Just for anyone else facing a similar situation, to elaborate on the answer that stringo0 answered, I put my styles in the 'GWT_APPNAME.css' where GWT_APPNAME is the name of the file that your GWT Eclipse plugin generates when you create your project.

    This css file should be available directly under the war folder with the same name as your welcome page html. I tried this for overriding the gwt-anchor styles and it worked.

    .gwt-Anchor:link {color:#FF0000;}
    .gwt-Anchor:visited {color:#00FF00;}
    .gwt-Anchor:hover {color:#FF00FF;}
    .gwt-Anchor:active {color:#0000FF;}
    

提交回复
热议问题