学习制作在线HTML编辑器遇到的问题。
在IE里正常,,FF里鼠标定位到编辑框的时候,光标只有一半,上半部分好像在编辑框外面一样。。
JScript code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
</style>
</head>
<body>
<iframe id="myedit" name="myedit" style="border:1px solid #ccc; padding:5px;" frameborder="0" marginWidth="0" marginHeight="0" width="350" height="200"></iframe>
</body>
</html>
<script language="javascript">
var dd=document.getElementById('myedit').contentWindow;
function editor () {
dd.document.designMode="on";
dd.document.open();
dd.document.write('<html><body><div></div></body></html>');
dd.document.close();
}
window.load=editor();
</script>
JScript code:
window.load
相关问答:
我的java applet 嵌入html后无法显示,而用appletviewer显示正常为什么,还有就是用html converter转化后可以显示,为什么?请大侠赐教!
HTML code:
<HTML>
<HEAD>
<TITLE>TEST.HTML< ......
<style>
BODY A:hover {
CURSOR: url('http://files.poqbum.com/Files/Cursors/page1/iloveu2.ani')
}
A:link {
FONT-SIZE: 12px; COLOR: #666666; TEXT-DECORATION: none
}
A:visited {
FONT-SIZE ......
position:relative不是相对定位吗~~为什么用了边偏移定位后有些人就说是变成了绝对定位了……~~而且它与margin来确定位置有什么不同~~
边偏移定位后有些人就说是变成了绝对定位了
re:
谁说的!真是不象话!positi ......
以前在.Net2003中使用DataGrid控件,比如加一个CheckBox控件。在HTML源文件中显示为"<input id="dgView__ctl3_cbxChecked" type="checkbox" name="dgView:_ctl3:cbxChecked&qu ......
我想做页面分页,select选取值的时候跳转本页面
<select name="SelectDrop" onchange="location.href='333.html?page='+this.value;">
<option value="1">1< ......