开发者

SIFR 3 NOT RENDERING IE7

开发者 https://www.devze.com 2022-12-16 05:28 出处:网络
I am building a site right no开发者_运维技巧w using the new siFR3 it works perfectly on FF & Chrome but not on IE7 to view click hereTry fixing the errors: Here and see if that helps.

I am building a site right no开发者_运维技巧w using the new siFR3 it works perfectly on FF & Chrome but not on IE7 to view click here


Try fixing the errors: Here and see if that helps.

Making sure your site is W3C compliant can be a major help in fixing troublesome quirks.


Make sure there is no trailing comma before a closing brace in the config. These are illegal in IE's JavaScript engine.


ok I found out what was the problem all it was watch my old code that doesn't work in IE:

    sIFR.replace(officinaWhite, {
  selector: '#boxes h1', wmode: 'transparent',
  css: '.sIFR-root { color:#ffffff; }',
});

sIFR.replace(officina, {  
  selector: '#content h2, #rightCol2 h2, #rightCol h2', wmode: 'transparent',
  css: '.sIFR-root { color:#000000; }',
});

and this is the code that fixed it:

    sIFR.replace(officinaWhite, {
  selector: '#boxes h1', wmode: 'transparent',
  css: ['.sIFR-root { color:#ffffff; }']
});

sIFR.replace(officina, {  
  selector: '#content h2, #rightCol2 h2, #rightCol h2', wmode: 'transparent',
  css: ['.sIFR-root { color:#000000; }']
});

it is only missing the parenthesis under the css:['.sIFR-root { color:#000000; }'] no commmas in the end.

0

精彩评论

暂无评论...
验证码 换一张
取 消