fixed ie6,7 bugs,and fixed #8