Sets the height of the iframe. The height of the iframe is determined by the page height in the iframe.

1. First get the height of the page in the iframe:

var iframeheight=$("#updateuseritem"). contents (). find ("body"). height ();

2. Set the height of the iframe:

$("#updateuseritem"). height (iframeheight);

Note:updateuseritem is the id of the iframe;

When setting the iframe height,This code needs to be executed on the same page as the iframe.

Related articles

  • Previous AngularJS basic ng-disabled instructions detailed and simple examples
  • Next Let C # Excel import and export support different versions of Office