I need to change the CSS of a iFrame
, but searching here, I discovered that it is not that simple, so I saw that the iFrame
that I want to style has a <link rel="stylesheet" href="styles/report.css" />
and it's in that report file. css that is the stylisations I would like to change, is it possible via JS I change this href
and direct it to my CSS
?
If it is not possible, is there any way I can change the CSS of an element that is within iFrame
? Changing by inspecting browser element works fine, but logically, I would need something fixed. I thought of changing the element class with jQuery, but it did not work, I thought of overwriting the element CSS using CSS and !important
, but apparently it did not work either.