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
相关文档:
在网页制作中,我们常常会使用到表格,表格使得需要表达的信息更清楚,明了。
<table border="1" cellspacing="0" bordercolor="#000000" width = "80%">
<tr>
<td>1.1</td>
&n ......
首先,我们试着在html文档中输入回车:
<!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>
<meta http-equiv="content-type" content="text/html; charset=ut ......
先看如下代码:
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>
......
在HTML文档中,大部分元素都可以指定色彩,以表达其不同的含义,使整个文档看起来更加美观且具有层次感。例如body节点的text,link,alink,vlink属性,或者font节点的color属性,都可以用来改变其文本子节点的色彩。
HTML文档使用两种方式表达色彩信息:
命名色彩空间:在HTML文档中,定义了16种最常用的颜色,并赋予其色 ......
1、标题文本
输入如下源码:
index.html
<!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>
<meta http-equiv="content-type" content="text/html; charset=g ......