某种情况下(汗~~当时也没搞清楚,糊里糊涂就解决了),在IE6用javascript:void(0);会出现样式错位

解决一:在javascript:void(0);后面加上“return false;”
解决二:改成javascript:;

Tagged with:  

One Response to IE6下,javascript:void(0);不是标准,建议用javascript:;

  1. frank says:

    哈 建议的更好 更短

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

无觅相关文章插件,快速提升流量