iframe如何引用父页面的CSS和JS文件(紧急求助!!!)
请教一个问题:
现在有一个父页面,名字为a.html,其中有引用如下CSS和JS文件:
<link rel="stylesheet" href="../../css/common3.css" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/nicejforms.js"></script>
<link rel="stylesheet" href="css/niceforms-green.css" type="text/css" />
<link rel="stylesheet" href="css/jquery.css" type="text/css" />
现在我另一个页面中b.html插入了一个iframe,语句如下:
<iframe width="100%" height="800px" src="a.html"align="center" id="cwin" name="cwin" frameborder="1" scrolling="yes"></iframe>
现在的问题是a.html能够完全引用过来
可是其中的CSS/JS文件引用不过,页面的样式完全不对啊
请问大家有什么没办法可以解决这个问题啊,能够使用这个iframe完整的引用a.html的内容和CSS样式啊