主頁
=================================================================================
<body onload='document.getElementById("e").contentWindow.document.designMode="on";'>
<iframe ID="e" name="ei" src="a.html"></iframe>
<script>
window.frames["ei"].src= 'a.html';
</script>
=================================================================================a.html
=================================================================================
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style>
body
{
line-height: 0px;
font-size:14px;
color:red;
}
</stle>
</head>
</html>
=================================================================================
在ie下正常工作但firefox下只show出
body
{
line-height: 0px;
font-size:14px;
color:red;
}
而且不能編輯iframe的內容
=================================================================================
<body onload='document.getElementById("e").contentWindow.document.designMode="on";'>
<iframe ID="e" name="ei" src="a.html"></iframe>
<script>
window.frames["ei"].src= 'a.html';
</script>
=================================================================================a.html
=================================================================================
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style>
body
{
line-height: 0px;
font-size:14px;
color:red;
}
</stle>
</head>
</html>
=================================================================================
在ie下正常工作但firefox下只show出
body
{
line-height: 0px;
font-size:14px;
color:red;
}
而且不能編輯iframe的內容
解决方案 »
- 关闭网页,弹出提示框,点击提示框自动跳转到另一个网址
- location.href取不到外界地址
- 设置变量的值
- 在body上设置了事件onmouseup,再在DIV上设置事件onmouseup,这样两个事件会同时执行,如何只执行div的事件
- 关于onblure事件上,急啊!
- innerHTML超链接的正确
- 怎么样用javascript来实现邮箱地址的验证问题?
- 请问各位大虾,我用javascript怎么实现鼠标控制的下拉菜单啊,鼠标移上去显示下拉菜单,移开就不显示的功能?
- 字符串分割后显示为多行的问题
- 外部软件如何留接口供内部软件的外部对象访问调用?
- 这种效果怎么实现呀
- Js新手求救 如何在当前日期基础上加30天
要仔细哦
主页
<body onload='document.getElementById("e").contentWindow.document.designMode="on";'>
<iframe ID="e" name="ei" src="a.html"> </iframe>
<script>
window.frames["ei"].src= 'a.html';
</script>
/*--------------------------------------------------*/
a.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style>
body
{
line-height: 0px;
font-size:14px;
color:red;
}
</style>
</head>
</html>