jQuery.boxModel


jQuery.boxModelReturns: Booleanversion 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
21
22
23
24
25
26
27
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery.boxModel demo</title>
<style>
p {
color: blue;
margin: 20px;
}
span {
color: red;
}
</style>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<p></p>
<script>
$( "p" ).html( "The box model for this iframe is: <span>" +
jQuery.boxModel + "</span>" );
</script>
</body>
</html>

Demo:

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

1
$.boxModel

Result:

1
false