简体   繁体   English

如何使用非 GWT 页面的标准 GWT CSS 样式主题?

[英]How do I use standard GWT CSS style themes from non-GWT pages?

I have written an GWT app and a static Intro page that introduces the app.我写了一个GWT app和一个介绍app的static Intro page。 It is turning out to be convenient for the intro to be a separate.jsp page, rather than part of the app;事实证明,介绍是一个单独的 .jsp 页面,而不是应用程序的一部分,这很方便; however, I want the CSS styling to be the same for the app and the intro page.但是,我希望应用程序和介绍页面的 CSS 样式相同。 How do I include the same GWT CSS style for the static or.jsp page as for the GWT app?如何为 static 或 .jsp 页面包含与 GWT 应用程序相同的 GWT CSS 样式?

just include it like a standard webpage like就像标准网页一样包含它

<link rel="stylesheet" type="text/css" href="{Path to css here}"/>

For instance using the Clean css provided by gwt, defined in projectname.gwt.xml:例如使用 gwt 提供的 Clean css,在 projectname.gwt.xml 中定义:

<inherits name='com.google.gwt.user.theme.clean.Clean'/>

Your css will be stored in:您的 css 将存储在:

/projectname/gwt/clean/clean.css /项目名称/gwt/clean/clean.css

Is that what you mean?你是这个意思吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM