English 中文(简体)
1.4.2 和1.2.3 冲突
原标题:conflict between jquery 1.4.2 and jQuery 1.2.3
  • 时间:2011-01-25 22:29:22
  •  标签:
  • jquery

我正在使用上述两个图书馆,一个用于某些<代码><ul>的打字效果;,另一个则用文字与浮动<代码><div>高。

When I link the jQuery 1.2.3, the typewriter stops and shows all the <ul> contents? what do you think I can do?

参考:

最佳回答

Thank you all guys for trying to help. I solved the problem by replacing the equal height plug-in to mootools: http://davidwalsh.name/mootools-equal-heights

问题回答

你只能使用单一版本的jQuery图书馆,而不是多个图书馆。

如果你需要选择的话,则采用新办法(就你的情况1.4.2)。

你们不要试图把同一图书馆的两个版本混在一起。 这只是要求打破。 利用新图书馆,更新必要的法规。

For an up-to-date version of equalHeights, see the following:

(function($) {
  $.fn.equalHeights = function(children) {
    return this.each(function() {

      var $this = $(this);
      var $children = $this.children();
      var highest = 0;

      $children.each(function(){
        var h = $(this).height();
        if (h > highest) {
          highest = h;
        }
      }).height(highest);
    });
  };
})(jQuery);

// example usage: $( #equalize ).equalHeights();

这是更新和改编的jQuery. Equalhalas.js plugin。





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签