发新话题
打印

iframe的子级页面怎样调用父级页面的样式表?

iframe的子级页面怎样调用父级页面的样式表?

iframe的子级页面怎样调用父级页面的样式表?

父级页面代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" c />
<title>父级</title>
<link href="boss.css" rel="stylesheet" type="text/css">
</head>
<body>
<iframe id="top" name="top" src="top.html" style="width: 100%; height: 100%;" frameborder="0" scrolling="auto"></iframe>
</body>
</html>

懂得朋友请帮帮我 先谢谢了。我传一下包。

附件

code.rar (1.6 KB)

2008-4-15 16:36, 下载次数: 42

rar

TOP

既然父级页是调用boss.css的,那么为什么top.html不也去调用boss.css呢?
我擦一擦嘴巴,不留下一颗饭粒~

TOP

发新话题