【发布时间】:2014-11-15 19:14:09
【问题描述】:
我有一个带有iframe 的HTML 页面。我想更改 iframe 内容的样式,但我似乎无法这样做。
我想将iframe 中所有内容的字体更改为“Tahoma”。这是我的代码:
<!DOCTYPE>
<html>
<head>
<title>phpinfo()</title>
<style type="text/css">
#outerdiv
{
width:446px;
height:246px;
overflow:hidden;
position:relative;
}
#inneriframe
{
position:absolute;
top: -508px;
left: 0px;
width: 100%;
height: 615px;
font-family: Tahoma;
}
</style>
<script>
onload = function()
{
document.frm.document.body.style.fontFamily = "Tahoma";
}
</script>
</head>
<body>
<div id='outerdiv '>
<iframe name="iframe" src="http://m.sarafikish.com" id='inneriframe' name="frm" scrolling=no frameborder="0" > </iframe>
</div>
</body></html>
【问题讨论】:
标签: javascript html css iframe