html 内部无限iframe 窗口
ie通过,没写火狐部分
js部分
function setbox()
{
var thisf=this//自我复制,用于嵌入obj方法中去
this.sindex=1;this.moving=false;this.sizing=false;
this.show=function(o)
{
if(o.id)
{
if(document.getElementById(o.id))
{
var td=document.getElementById(o.id);
if(td.style.pixelLeft<0)td.style.pixelLeft=0
if(td.style.pixelTop<0)td.style.pixelTop=0
td.style.zIndex=this.sindex++;
return 0;
}
}
var word="",title="新窗口";
var obj=document.createElement("FORM")
thisf.obj=obj
obj.style.width="66%"
obj.style.height="66%"
obj.style.padding='6px'
obj.style.top='15%'
obj.style.left='15%'
if(o.id)obj.id=o.id;
if(o.parent)obj.parent=o.parent;
if(o.title)title=o.title;
if(o.html)word=o.html
if(o.url)word="<iframe src=""+o.url+"" mce_src=""+o.url+"" style='position:absolute; height:100%;width:100%; ' frameborder=0></iframe>"
if(o.width)obj.style.width=o.width
if(o.height){setTimeout("box.obj.style.height='"+o.height+"';box.obj.childNodes[0].style.height='"+(o.height-1)+"';",1)}
if(o.left)obj.style.left=o.left
if(o.top)obj.style.top=o.top
obj.className="newbox"
obj.style.zIndex=this.sindex++;
obj.innerHTML="<div class=content>"+word+"</div><div class=tl></div><div onmousedown=parentNode.move() class=tc><div class=ico></div><div style='position:absolute;top:0px;height:26px;left:21px;color:#fff;line-height:26px;font-weight:bold;'>"+title+"</div></div><div class=xbtn onmouseover=\"className='xbtn xbtnover'\" onmouseout=\"className='xbtn'\" onclick='parentNode.close()'></div><div class=tr></div><div class=ml></div> <div class=mr> </div><div class=mr></div><div class=bl></div><div class=bc></div><div class=br onmousedown='parentNode.size()'></div><div class=m
相关文档:
使用 VAlign 属性指定由 HtmlTableCell 类的实例所表示的单元格内容的垂直对齐方式
“VALIGN"意思 -- vertical alignment 垂向对齐方法
其值可以是top -- 顶部;或middle -- 中部;或bottom-- 底部;或baseline -- 基线。默认中部--middle。
对齐,就是表格(Cell)内的东西(元素包括图形)排得整齐划一,V ......
先看如下代码:
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>body元素</title>
......
--------------
1、显示图片:
输入如下代码:
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gbk" /& ......
个人觉得这是标准与私有标准的PK, 就像微软的office和其他office软件,如金山wps,openoffice的竞争类似。
从用户角度看PK越多越好,呵呵。
http://www.javaeye.com/news/15856-apple-flash
http://www.w3school.com.cn/html5/index.asp
http://www.w3.org/TR/html5/
http://html5.org/ ......