02
IE8 problem - cookie , form field - transparent and more
Posted by YuanYuan under browser, jQuery, javascriptSome 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:
- var cookie_options = { expires: 30, domain: 'my.happy.com'};
- $('a#btn-login').click(function() {
- $.cookie("_clk_cookie", 1, cookie_options);
- return false;
- });
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,
- #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.
- #nav {
- height: 75px\9; /* all IE */
- height: /*\**/95px\9; /* IE8 only */
- }
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.