How to make a meta tag the first one in the <head> section?

前端 未结 5 1513
感动是毒
感动是毒 2020-12-05 00:42

I\'m using JSF2, GlassFish 3.1, PrimeFaces 2.x.

I\'m having strange rendering problems on IE9. I\'m supposed to be able to force IE9 to render as IE9 by inserting

5条回答
  •  广开言路
    2020-12-05 01:19

    1. The meta tag must go before all PrimeFaces stuff: http://blogs.msdn.com/b/cjacks/archive/2012/02/29/using-x-ua-compatible-to-create-durable-enterprise-web-applications.aspx

    2. HTTP Header and HTML HEAD are completly different things.

    3. In PrimeFaces 3.0 the new facet was added to h:head: http://blog.primefaces.org/?p=1433 So the solution would be:

    
        
            
        
    
    

提交回复
热议问题