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>");
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
false
Was this information helpful?

