Wednesday, May 30, 2012

Re: How to apply css file to html content within HTML widget?

try like this:

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:gwt='urn:import:com.google.gwt.user.client.ui'>
<ui:style src="project_entry.css" />

On Wed, May 30, 2012 at 6:55 PM, July <julyguo7@gmail.com> wrote:
> Hello:
>
> At client side my page contain a com.google.gwt.user.client.ui.HTML, this
> HTML will contain a large number of <div> and each <div> is associated with
> its own style. all the styles are defined in another css file.
>
> My question is how to apply the style to the HTML content?
> i use
> <g:HTML ui:field="myfield" styleName="project_entry.css" />
>
> but it does not work.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/bGL4yPbtpY4J.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment