• Page 1 of 1
  • 1
X-UA-Compatible not works?
Yuraj
Posts: 2
Reputation: 0

Message # 1 | 7:19 PM
Hello,
I've made design which uses new css features like border-radius. But there is problem when I'm testing my site on IE9. In IE9 it runs in old mode. There is meta option to enable IE9 mode. I have added to Site pages to head this line:
Code
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

It's correct, it works but only when I'm logged on site otherway it doesn't work (if i am viewing site as guest). It looks that ucoz has disabled adding new tags into <head> ? Because ucoz is adding Ads in top of <html> it doesn't work. Is there way to fix this or some trick?
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 11:28 AM
Yuraj, uCoz does not disable any tags. Maybe it's your browser that does not support this option.
I'm not active on the forum anymore. Please contact other forum staff.
Yuraj
Posts: 2
Reputation: 0

Message # 3 | 7:59 PM
I am testing my site on Internet Explorer 9 (On firefox and chrome it works fine):
When I am viewing site as guest:

Here is screenshot how corners should look with using new css3 feature border-radius, logged as user on site:


When I look at source code of site in browser as guest there is code between <!DOCTYPE html> tag and <html>. This is why it doesn't work because <meta http-equiv="X-UA-Compatible" content="IE=edge" /> will work only if there is no code before X-UA-Compatible which writes something to document (like javascripts etc.)

As logged user I get correct code:
Code
<!DOCTYPE html>
<html>
    <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link type="text/css" rel="StyleSheet" href="/_st/my.css" />


More info here:
Code
http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx#SetMode

Added (2012-03-12, 1:59 PM)
---------------------------------------------
*BUMP*

Attachments: 7352584.jpg (13.6 Kb) · 1773436.jpg (12.6 Kb)
Post edited by Yuraj - Tuesday, 2012-02-28, 12:15 PM
Sunny
Posts: 9296
Reputation: 456

Message # 4 | 12:40 PM
Yuraj, everything must work fine in IE 9 with the relevant doctype, and you will not need to use <meta http-equiv="X-UA-Compatible" content="IE=edge" />.
I'm not active on the forum anymore. Please contact other forum staff.
  • Page 1 of 1
  • 1
Search: