Stackfix: restrict version test to IE version

This commit is contained in:
Chi Cheng 2009-07-25 13:19:42 +00:00
parent eff793d014
commit f450302692

View File

@ -11,7 +11,7 @@
(function($){
// This is only for IE6
$.fn.stackfix = $.browser.msie && /6.0/.test(navigator.userAgent) ? function(s) {
$.fn.stackfix = $.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) {
s = $.extend({
top : 'auto', // auto == .currentStyle.borderTopWidth
left : 'auto', // auto == .currentStyle.borderLeftWidth