Y星人の工作語錄

別理我, 我只是一個愛發勞騷的Y星人

6月
02

IE8 problem - cookie , form field - transparent and more

Posted by YuanYuan

Some user tell me, he has some problem with IE8. yeah, what’s going on ?

1.Cookie
when user login then click some button(must be login fn), still alert , “you’r not login!!!” , yeah! what’s wrog ? IE6, IE7, FF2+ works fine, why IE8 get this problem ? I google it get the answer. because IE8 security issue, when you set cookie , you must set domain name. if you don’t, you can’t get correctly cookie value. haha. IE8 tell you, you must write right cookie format set.

jquery cookie plugin example:

  1. var cookie_options = { expires: 30, domain: 'my.happy.com'};
  2. $('a#btn-login').click(function() {
  3.      $.cookie("_clk_cookie", 1, cookie_options);
  4.         return false;
  5.     });

2.background:transparent, with form field.
In login form, your cursor can through the password field , click the under google map.
It’s fun. IE6, IE7, FF2+ works fine. but IE8 just through the field. why ? because I set some css is,

  1. #login form input{background:transparent}

IE8 through the field. nerver see before. haha. how to fix ?
Mark or delete this.

3.different height ?
I set some navgation height, IE6, IE7 same nav height, but IE8 different. I don’t know why ? so, I google it find some fix way. IE8 Hacks.

  1. #nav {
  2.     height: 75px\9; /* all IE */
  3.     height: /*\**/95px\9; /* IE8 only */
  4. }

4.jQuery corner plugin problem.
version 1.91(9/21/2007) on IE8 get some layout problem. you need upgrade to version 1.96 (11-MAY-2009)

I think , IE8 still have some problem with our web.

IE8 sUxxxs ? hahaha. maybe or not.

Add A Comment