获取URL对应的HTML文档及用正则做replace
System.Net.WebRequest request = System.Net.WebRequest.Create("http://la.jmw.com.cn/c.asp");
request.UseDefaultCredentials = false;
System.Net.WebResponse response = request.GetResponse();
System.IO.Stream resStream = response.GetResponseStream();
System.IO.StreamReader sr = new System.IO.StreamReader(resStream, System.Text.Encoding.Default);
string m_str = System.Web.HttpUtility.HtmlEncode(sr.ReadToEnd());
Response.Write(m_str);
System.Text.RegularExpressions.Regex r = new System.Text.RegularExpressions.Regex(@"[^0-9]");
//m_str = m_str.Replace(r, "");
if (r.IsMatch(m_str))
{
m_str = r.Replace(m_str, "");
}
Response.Write(m_str);
resStream.Close();
sr.Close();
相关文档:
字符
十进制字符编号
实体名字
说明
---
�
---
未使用Unused
---

---
未使用Unused
---

---
未使用Unused
---

---
未使用Unused
---

---
未使用Unused
---

---
未使用Unused
---

---
未使用Unused
---

......
Struts HTML标签
<html:html>标签
属性的作用:
lang: 值为true时,就根据存储在HttpSession中的Locale对象来输出网 页使用的语言。如果不存在session或session中没有Locale对象, 就以Http请求头中的Accept-language属性来设置输出语言。如果 &nbs ......
示例:此DIV为固定定位对象
要使HTML元件定位于浏览器的某个固定位置,而不随滚动条滚动,用以下CSS代码即可,跨各个主流浏览器: POSITION: fixed! important; TOP: 100px; _position: absolute; _top: 40; _left: 100。
示例见右边黄底红字块。 ......
一个简单的下拉菜单,主要说明CSS中posistion的作用。
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"& ......
纯css:
1 .在 table 的 css 中声明: border-collapse: collapse; border-spacing: 0;
2 .th td 的css 中声明: padding:0;
半纯css:
1.上同.
2.<table cell-padding="0" .............
详细见:
http://www.dreamdu.com/xhtml/attribute_cellpadding_cellspacing/
http://www.haoxiai.net/wangzhanzhizu ......