jQuery.boxModel

jQuery

jQuery.boxModel


jQuery.boxModel Returns: Boolean version deprecated: 1.3

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
                                  
<!DOCTYPE html>
<html>
<head>
<style>
p { color:blue; margin:20px; }
span { color:red; }
</style>
<script src="http://code.jquery.com/jquery-latest.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

1
                                  
$.boxModel

Result:

1
                                  
false