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

字符串截取(包括html,BasicPage.cs类使用)

    /// <summary>
    /// 截断字符串(中文计一个字符宽度,其它计半个字符宽度)
    /// </summary>
    /// <param name="input">需截断的字符串</param>
    /// <param name="length">字符宽度</param>
    /// <returns>截断字符串(带"...")</returns>
    protected string truncatedChars(string input, int length)
    {
        input = Server.HtmlEncode(input);
        if (input.Length > length)
        {
            int pos = 0;
            string result = "";
 
            foreach (char chr in input)
            {
                if (Regex.IsMatch(chr.ToString(), "[^\x00-\xff]"))
                {
                    pos += 2;
                }
                else
                {
                    pos += 1;
                }
                result += chr.To


相关文档:

Html/Jsp常用的页面跳转方法

第一种:
<script language="javascript" type="text/javascript">
    window.location.href="login.jsp?backurl="+window.location.href;
</script>
第二种:
<script language="javascript">
    alert("返回");
    window.history.back ......

HTML标签小meta的大作用

摘自:http://www.pconline.com.cn/pcedu/sj/wz/html/0401/293106.html     
      meta是用来在HTML文档中模拟HTTP协议的响应头报文。meta 标签用于网页的<head>与</head>中,meta 标签的用处很多。meta 的属性有两种:name和http-equiv。name属性主要用 ......

获取其它进程中的Web Browser中的HTML源码


HWND H1,H2,H3,H4,hw;
 H1=H2=H3=H4=hw=NULL;
 H1=::FindWindow("TForm1",NULL);
 if (H1) H2=::FindWindowEx(H1,NULL,"Shell Embedding",NULL);
 if (H2) H3=::FindWindowEx(H2,NULL,"Shell DocObject View",NULL);
 if (H3) H4=::FindWindowEx(H3,NULL,"Internet Explorer_Server",NULL) ......

关于在html页面中创建fckeditor

<!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>
    <title>文本编辑器</title>
     <meta http-equiv="C ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号