jQuery & jQuery UI Documentation

jQuery & jQuery UI

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.

  • version added: 1.0jQuery.boxModel

Examples:

Example: Returns the box model for the iframe.

<!DOCTYPE html>
<html>
<head>
  <style>

  p { color:blue; margin:20px; }
  span { color:red; }
  </style>
  <script src="http://code.jquery.com/jquery-1.7rc2.js"></script>
</head>
<body>
  <p>
  </p>
<script>

    $("p").html("The box model for this iframe is: <span>" +
                jQuery.boxModel + "</span>");
</script>

</body>
</html>

Example: Returns false if the page is in Quirks Mode in Internet Explorer

$.boxModel

Result:

false