tadam logo
Did you find an error in the text?
Select this with mouse and press
Ctrl + Enter
Xhtml.co.il Check Spelling
Orphus system

jQuery.boxModel

jQuery.boxModel

Returns: Boolean
Description: Deprecated in jQuery 1.3 (see jQuery.support). States if the current page, in the user's browser, is being rendered using the W3C CSS Box Model.

jQuery.boxModel

version added: 1.0

Examples

Example 1

Returns the box model for the iframe.
    $("p").html("The box model for this iframe is: <span>" +
                jQuery.boxModel + "</span>");
The output of the code above will be:
Full source:
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>  
  <script type="text/javascript" language="javascript">
  $(document).ready(function(){
    $("p").html("The box model for this iframe is: <span>" +
                jQuery.boxModel + "</span>");
  });
  </script>
  <style>
  p { color:blue; margin:20px; }
  span { color:red; }
  </style>
</head>
<body>
  <p>
  </p>
</body>
</html>

Example 2

Returns false if the page is in QuirksMode in Internet Explorer
$.boxModel
The output of the code above will be:
false
Was this information helpful?
   

Comments