没有样式就是最好的样式

Archive for August, 2004


表格技巧二则

Aug 20, 2004 Author: | Filed under: Uncategorized

Table Layout

以前光知道 table-layout 用于解决表格 连续英文字符的撑开 问题。原来没这样还可以加速页面的渲染时间。

Table rendering performance can be increased by specifying the tableLayout property. This property causes Internet Explorer to incrementally render the table, providing users with information at a faster pace. Using the tableLayout property, the layout of a table is determined in the following order:

From information in the width property for the col or colGroup objects.

By analyzing the formatting of the first table row.

By an equal division of the columns.

First, information from the width property of the COL or COLGROUP object is used if it is available. If it is unavailable, then formatting for the first table row is taken into account. Lastly, if formatting is not available for the COL or COLGROUP objects, or the first table row, table layout is determined by an equal division of the columns.

Printing Tables on Multiple Pages

这个倒是早就知道了。控制很长的表格打印时候的处理办法。

When a page containing a table is printed, the CSS attributes page-break-before and page-break-after can be used to specify where in a table the break should occur. This is helpful for Web sites that implement large tables to organize pages. In addition, the display property exposes the table-header-group and table-footer-group possible values, which specify that the tHead or tFoot objects are always before or after any table rows. Using these possible values for the tHead and tFoot objects specifies that the header and footer will print on every page that a particular table spans.

原文在:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/tables/tables_overview.asp?frame=true#hidingrows

About Conditional Comments

Aug 20, 2004 Author: | Filed under: Uncategorized

在ie中可以使用这样的语法来判断是否ie以及版本。表达式还可以用 ! lt lte gt gte ( 非,<,<=,>,>=)

运行代码 [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

[Edit on 2004-8-20 12:24:22 By guoshuang]

一个关于正则表达式和Unicode的问题

Aug 20, 2004 Author: | Filed under: Uncategorized

问题是这样的:

我希望表达式e中可以出现除’#'外的任何字符(包括任何unicode字符)

‘#’的unicode为u0023

一开始我想直接用[^#]+或[^u0023]+这样的,

结果发现这里的“全集“似乎不包含unicode字符,所以中国字也属于不匹配的

问题1: 当使用^运算符时,相对的”全集”是什么?

后来我决定使用[u0000-u0022]|[u0024-uFFFF]+

也就是说手动指定全集,把u0023空过去

结果发现竟然出现了语法错误~~~

错误提示是:

unclose literal string 未闭合的串字面值

而如果将原式改为

[u0000-u0023]|[u0024-uFFFF]+

[u0000-u0021]|[u0024-uFFFF]+

都不会有问题

最后,终于发现

在java中

System.out.println(”u0022″);竟然都有语法错误!

换句话说,问题出在u0022这个unicode值上

问题2:为什么只有u0022不行呢?

难道是bug?

后来,jinni自己给出了答案

在flash 输出 trace(u0022),原来是 “

[Edit on 2004-8-20 11:16:24 By guoshuang]

读取其它页面的内容

Aug 19, 2004 Author: | Filed under: Uncategorized

在xp sp2以后必须同域访问,否则提示没有权限。

behavior download 方法

显示更多

xmlhttp 方法

显示更多

Adodb.Stream 方法

关于正则的 (?:pattern) 匹配

Aug 19, 2004 Author: | Filed under: Uncategorized

来自我佛山人的例子,说明了一切…

运行代码 [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

[Edit on 2004-8-19 15:55:25 By guoshuang]

xml数据岛

Aug 19, 2004 Author: | Filed under: Uncategorized

运行代码 [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

[Edit on 2004-8-19 15:50:46 By guoshuang]