这是对的吗?或者有什么办法吗?你可以帮我解释一下代码吗? 我的目的是在点击链接时将我的ppt文件显示在i帧上。
<html>
<head>
<style type="text/css">
ul li{
font-size: 11px;
list-style: none;
}
ul li a{
text-decoration: none;
}
</style>
</head>
<body bgcolor="lightgray">
<ul>
<li><a href="http://docs.google.com/gview?
url=wbste/ppt/SMIME.pptx&embedded=true" target="disiframe"><font
face="Lucida Sans" color="black" >S/MIME</font></a></li><br>
</ul>
</body>
</html>
答案 0 :(得分:0)
确保您定义iframe,src
是iframe页面来源
<iframe name="disiframe" src="target.html"></iframe>
这是一个有效的例子
<body>
<a href="http://www.wikipedia.org/" target="myIframe">Link Text</a>
<iframe src="http://en.wikipedia.org/" name = "myIframe"></iframe>
</body>
&#13;