易截截图软件、单文件、免安装、纯绿色、仅160KB

html弹出提示框并实现拖动的源码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type" />
<title>简单的测试页面</title>
<mce:style type="text/css"><!--
html {
height: 100%;
}
body {
margin: 0px;
padding: 0px;
height: 100%;
}
#dt_3 {
cursor: pointer;
}
div#mbDIV {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background-color: #000;
z-index: 10;
filter: alpha(opacity=50);
opacity: 0.5;
}
div#loginDIV {
position: absolute;
width: 300px;
height: 150px;
background-color: #FFFF00;
z-index: 20;
}
div#loginTopDIV {
width: 100%;
height: 20px;
background-color: #FF0000;
cursor: move;
}
--></mce:style><style type="text/css" mce_bogus="1">html {
height: 100%;
}
body {
margin: 0px;
padding: 0px;
height: 100%;
}
#dt_3 {
cursor: pointer;
}
div#mbDIV {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background-color: #000;
z-index: 10;
filter: alpha(opacity=50);
opacity: 0.5;
}
div#loginDIV {
position: absolute;
width: 300px;
height: 150px;
background-color: #FFFF00;
z-index: 20;
}
div#loginTopDIV {
width: 100%;
height: 20px;
background-color: #FF0000;
cursor: move;
}</style>
<mce:script type="text/javascript"><!--
function show(ele)
{
eval(ele + ".style.display = ''");
}
function hidden(ele)
{
eval(ele + ".style.display = 'none'");
}
// --></mce:script>
</head>
<body>
<div style="overflow: hidden;" mce_style="overflow: hidden;">
<h3>请点击 --> 03号拖拉机</h3>
<p id="dt_1">01号拖拉机</p>
<p id="dt_2">02号拖拉机</p>
<p id="dt_3">03号拖拉机</p>
<p id="dt_4">04号拖拉机</p>
<p id="dt_5">05号拖拉机</p>
<p id="dt_6">06号拖拉机</p&


相关文档:

html基本知识汇总表(txt)

<html>
<head>
<title>text-font</title>
</head>
<body>
 ************************<font size="7" color="red">标题章节</font>*************************<br>
 
 正常文本
 <h1>一级标题</h1>
 <h2 align=righ ......

如何使用Objective C解析HTML和XML

使用Objective-C解析HTML或者XML,系统自带有两种方式一个是通过libxml,一个是通过NSXMLParser。不过这两种方式都需要自己写很多编码来处理抓取下来的内容,而且不是很直观。
有一个比较好的类库hpple,它是一个轻量级的包装框架,可以很好的解决这个问题。它是用XPath来定位和解析HTML或者XML。
安装步骤:
-加入 libx ......

有关去掉html中的两端字符

如何有一个字符串是这样的形式str = "&bbbLAA";
想得到"L"的话可以这样去实现:
//sDataStr = "&bbbLAA";
//sLeftQuote = ""&bbb";
//sRightQuote = "&AA";
调用这个方法将得到L字段。
function abCutString( sDataStr, sLeftQuote, sRightQuote)
{
 var sReturnVal = '';
 var nStart ......

刚刚找出来的相对准确的查找HTML的正则表达式

Dim objReg,objMatches,objMatch
Set objReg=new RegExp
objReg.Global=True
objReg.IgnoreCase=True
objReg.Pattern="<('[^']*'|""[^""]*""|[^'"">])*?>"
Set objMatches=objReg.Execute(字符串)
For Each objMatch In objMatches
找到的HTML :objMatch.value
Next
Set objMatches=Nothing
Set objRe ......

html unicode编码转换方法

对于"&# 24038;&# 36793;"这种&#开始的字符,应该为html unicode编码类型,解码方法如下:
s="&#  24038;& # 36793;"
s="左边"
import re
_=re.compile('&#(x)?([0-9a-fA-F]+);')
to_str=lambda s,charset='utf-8':_.sub(lambda result:unichr(int(result.group(2),result.group ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号