JQuery toggle function rendering weird text in IE (losing ClearType?)

前端 未结 2 761
野性不改
野性不改 2020-12-05 22:17

I have this little script to toggle a contact form when a button is clicked :

$(document).ready(function(){

    $(\"#button\").click(function () {
      $(\         


        
2条回答
  •  清歌不尽
    2020-12-05 23:11

    For Paul, adding to the accepted answers solution, creating a toggle function is simple.

    $.fn.ClearTypeToggle = function(options) {
        if ($(this).css('opacity') == 1) {
            $(this).ClearTypeFadeOut(options);
        } else {
            $(this).ClearTypeFadeIn(options);
        }
    }
    

提交回复
热议问题