主頁
=================================================================================
<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的內容
解决方案 »
- disabled:true,的问题。
- JQuery自已写插件问题?
- 求jquery里删除tr下所有子元素,但不删除tr
- 火狐浏览器无法正常显示当前日期?
- 如何实现光标移入文本域时出现与该文本域操作相关的文字提示?
- js $ 符号的意思
- 如何在用insertCell()的时候设置单元格宽度
- 小妹碰到个问题一上午没解决,高手来帮忙啊,感谢:在进入页面时我想触发一个javasript,具体的进来看,谢谢在线急!
- javascript 怎样打开frontpage
- 对javascript不熟悉,请教一个js代码,关于判断点击动作对象元素的问题.谢谢!
- 这种效果怎么实现呀
- 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>