You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by orden <pw...@laposte.net> on 2010/02/19 14:53:08 UTC
Re: If IE comments
You may be interested by my code: it's adding IE only CSS in the header. You
just have to add it to the page.
public class IEStylesheetHeaderContributor extends AbstractBehavior
implements IHeaderContributor{
private final ResourceReference ref;
public IEStylesheetHeaderContributor(ResourceReference ref) {
this.ref = ref;
}
public void renderHead(IHeaderResponse response){
response.renderString("<!--[if IE]> <link type=\"text/css\"
rel=\"stylesheet\" href=\"" + RequestCycle.get().urlFor(ref) + "\"/>
<![endif]-->");
}
}
--
View this message in context: http://old.nabble.com/If-IE-comments-tp26205227p27652623.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org