Last change
on this file since 242 was
69,
checked in by guille, 17 years ago
|
Se agrego Plugin Crayon y se actualizaron los esqueletos para que funcione
|
File size:
386 bytes
|
Line | |
---|
1 | // Ce plugin permet de recuperer css(fontSize) en px meme sous MSIE |
---|
2 | (function($){ |
---|
3 | $.fn.px = function(prop) { |
---|
4 | var val; |
---|
5 | if($.browser.msie) { |
---|
6 | $('<span><\/span>') |
---|
7 | .css({display: 'block', width: '1em'}) |
---|
8 | .appendTo(this[0]) |
---|
9 | .each(function(){ |
---|
10 | val = parseInt($(this).width()) + 'px'; |
---|
11 | }) |
---|
12 | .remove(); |
---|
13 | } else { |
---|
14 | val = this.css(prop); |
---|
15 | } |
---|
16 | return val; |
---|
17 | }; |
---|
18 | })(jQuery); |
---|
Note: See
TracBrowser
for help on using the repository browser.