HTML 框架 字体 JavaScript
<html><body bgcolor="#fffff"><script type="text/javascript"> function changeFontSize(size) { var bd = document.getElementById('ifr').contentWindow.document.body; bd.style.fontSize = size + "px"; }</script><a href="javascript:changeFontSize(14)" style="font-size:14px;" alt="Smaller Font Size">A</a><a href="javascript:changeFontSize(18)" style=" font-size:18px;" alt="Larger Font Size">A</a><div id=zoom>这段文字会随即改变大小</div><iframe id="ifr" src="2.html" height="500" width="999" align="center" scrolling="no" marginwidth="80" vspace="100"></iframe></body></html>
ok 好了 非常感谢!