css from iframe to parent page
I would like to add css from iframe...
i have a file e.g. test.com/test.html and only filled with:
- <style type="text/css">
- .nanana01 {background:#000 !important}
- </style>
then i want the page which has my iframe css change the background e.g. otherpage.com.
- <html><body>
- <div class="nanana01">
- text 1
- text 2
- </div>
- <div class="mypost">
- <iframe src="test.com/test.html"></iframe>
- </div>
- </body></html>
i wonder is there any javascript that apply my css into the parrent page?
what should i put in test.com/test.html?