Home > Article > Web Front-end > The page in the iframe to set the attributes of the iframe (width, height)_html/css_WEB-ITnose
a.htm is the page to be nested. There is an iframe in b.htm that nests a.htm
I want to set the width of the iframe in b.htm through js in a.htm. , height
$(parent.window).width(1000);
Cross-domain will not work
It involves cross-domain. . . Not easy to handle. .
http://www.chinaz.com/web/2011/1123/222158.shtml
This can completely meet your requirements.
Thank you everyone, I learned a lot of methods.
But I don’t have any control over b.htm (that is, I cannot add any js to b.htm or create files in this directory) , The method I found is to add js to b.htm to change the attributes of iframe
Thank you everyone, I learned a lot of methods.
But I don’t have any control over b.htm (that is, you cannot add any js to b.htm or create files in this directory). The method I found is to add js to b.htm to change the attributes of the iframe
Do not add anything to b, no That’s easy