f0r4y312 / jquery-stylesheet

jQuery plugin for the stylesheet manipulation
43 stars 10 forks source link

Accessing iframe on same domain? #9

Open kmob2 opened 7 years ago

kmob2 commented 7 years ago

I have an iframe that loads content from the same domain. Using the built jquery css, I can do this

$("iframe").contents().find(".site-header").css("height", "100px");

How would I do this with this plugin?

I tried multiple ways, such as: $.stylesheet( 'iframe .site-header' ).css( "height", "100px" );

Unfortunately they don't seem to work.