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

asp.net清除html标记

#region 清除文本样式  主要应用于从网络粘贴进来的文本
        [WebMethod]
        public static string ClearStyle(string yourStr)//清除样式
        {
            ImageUrl = null;
            string OldString = yourStr;
            StringBuilder UpdateString = new StringBuilder();
            Regex reg = new Regex(@"(?i)<img[^>]*?\s*src=(['""]?)(?<src>[^'""\s>]+)\1[^>]*>");//匹配出img标记
            MatchCollection mc = reg.Matches(yourStr);
            int imgsum = mc.Count;
            ImageUrl = new string[imgsum];
            if (imgsum > 0)
            {
                for (int i = 0; i < imgsum; i++)
                {
                    int len = mc[i].Length;
                    int index = OldString.IndexOf(mc[i].ToString());
                    string indextext = OldString.Substring(0, index);
                &nbs


相关文档:

Web开发 第一部分 HTML教程基础(八) 文本段落

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=gb231 ......

HTML5 与Flash 从乔布斯讨厌Flash说起

个人觉得这是标准与私有标准的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/ ......

Asp.net获取上传图片大小的尺寸!

1.采用流取得图片大小 
Stream stream=file.PostedFile.InputStream;
System.Drawing.Image image=System.Drawing.Image.fromStream(stream);
Image.Width
Image.Height
2.使用文件得到图片大小
System.Drawing.Image image=System.Drawing.Image.fromFile(图片路径)
Image.Width
Image.Height ......

asp.net 里的几个标签

<%%>是在呈现页面的过程中执行的服务器代码,包括方法,变量,一般是嵌入式服务器代码写法,不适合分离模式。
<%=%>是在呈现页面的过程中执行的服务器代码,主要是变量的值。
<%#%>可包括变量,表达式,或者调用方法返回的值,但必须的保证这段代码位于
绑定控件的内部,因为只有当绑定控件在执行D ......

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 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号