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的某一格里插入文本时,如果是中文当然是没有问题,当到达指定宽度时会自动换行,但如果是英文或数字之类的就会有问题了.因为它是以空格为英文单词间的区别,但是如果输入一长串英文,中间不含空格时,表格就变形了.但事实table的style里有一项可以让英文强制换行的,就是word-break,当把这项设为break-all时大家 ......
import urllib
from HTMLParser import HTMLParser
class TitleParser(HTMLParser):
def __init__(self):
self.title = ''
self.divcontent = ''
self.readingtitle = 0
self.readingdiv = 0
HTMLParser.__init__(self)
def handle_starttag(self, tag, attrs):
......
<%@ Page Language="C#" %>
<%@ Import Namespace="System.IO" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
prote ......
noscript 元素用来定义在脚本未被执行时的替代内容(文本)。此标签可被用于可识别 <script> 元素用来定义在脚本未被执行时的替代内容(文本)。 标签但无法支持其中的脚本的浏览器。如果浏览器支持脚本,则不会显示noscript 标签的内容。
noscript标签使用示例:
<html>
<head>
<meta http-equiv ......
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 ......