mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix failing support test in IE6/7
This commit is contained in:
parent
1a9f8d9bb1
commit
e7bdccacab
@ -43,7 +43,7 @@ jQuery(function() {
|
|||||||
// Check if natively block-level elements act like inline-block
|
// Check if natively block-level elements act like inline-block
|
||||||
// elements when setting their display to 'inline' and giving
|
// elements when setting their display to 'inline' and giving
|
||||||
// them layout
|
// them layout
|
||||||
div.style.cssText = "width:1px;padding:1px;display:inline;zoom:1";
|
div.style.cssText = "border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1";
|
||||||
|
|
||||||
if ( (support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 )) ) {
|
if ( (support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 )) ) {
|
||||||
// Prevent IE 6 from affecting layout for positioned elements #11048
|
// Prevent IE 6 from affecting layout for positioned elements #11048
|
||||||
|
Loading…
Reference in New Issue
Block a user