没有样式就是最好的样式

Archive for January, 2006


xhtml 1.0 block 元素不能直接包含 list元素

Jan 28, 2006 Author: | Filed under: Uncategorized

比如这样的代码就不能通过 xhtml 1.x 验证,以前没注意到这个问题 。比如这样的代码

test

  • fefe

W3C验证会报告,不允许block元素(ul)出现在这里。p 换成 div就可以,真是奇怪的限制啊。xhtml 2.0 将去掉这个限制。

Another logical anomaly in XHTML 1.0 is that you must close a paragraph in order to use a list. In fact, you must close it to use any block-level element (blockquotes, preformatted sections, tables, etc.). This is often an illogical thing to do when such content can justly be used as part of the same paragraph flow. XHTML 2.0 removes this restriction. The only thing you can’t do is put one paragraph inside another.

via The future of HTML, Part 2: XHTML 2.0

[Edit on 2006-1-28 10:34:30 By guoshuang]

W3C Link Check result of my blog

Jan 28, 2006 Author: | Filed under: Uncategorized

W3C Link Check guoshuang blog 部分结果

看来需要时间修复这些问题。

链接失败

http://photo.163.com/openalbum.php?username=david_guoshuang

What to do: The link is forbidden! This needs fixing. Usual suspects: a missing index.html or Overview.html, or a missing ACL.

Response status code: 403

Response message: Forbidden

Line: 122

网易封掉了我的相册

http://www.topim.com/sub/http://blog.guoshuang.com/david/rss2.asp

What to do: This is a server side problem. Check the URI.

Response status code: 500

Response message: Can’t connect to www.topim.com:80 (connect: timeout)

Line: 122

这个 topim 站点应该是挂掉了!W3C打不开,我这里也打不开。

URL redireced 部分

一般都是beta 转正式后的网站URL目录结构变化

http://spaces.msn.com/members/guoshuang/ redirected to

http://spaces.msn.com/guoshuang/

What to do: You should update the link.

Response status code: 301 -> 200

Response message: Redirect -> OK

Line: 122

http://www.livejournal.com/users/guoshuang/ redirected to

http://guoshuang.livejournal.com/

What to do: Usually nothing.

Response status code: 302 -> 200

Response message: Found -> OK

Line: 122

http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http://blog.guoshuang.com/david/rss2.asp redirected to

https://www.newsgator.com/ngs/si.aspx?ReturnUrl=%2fngs%2fsubscriber%2fsubext.aspx%3furl%3dhttp%3a%2f%2fblog.guoshuang.com%2fdavid%2frss2.asp&url=http://blog.guoshuang.com/david/rss2.asp

What to do: Usually nothing.

Response status code: 302 -> 200

Response message: Found -> OK

Line: 122

http://www.bloglines.com/sub/http://blog.guoshuang.com/david/atom.asp redirected to

http://www.bloglines.com:80/login?r=/sub/http://blog.guoshuang.com/david/atom.asp

What to do: Usually nothing.

Response status code: 302 -> 200

Response message: (no message) -> OK

Line: 122

http://www.spreadfirefox.com/?q=affiliates&id=8029&t=86 redirected to

http://www.mozilla.com/firefox/

What to do: Usually nothing.

Response status code: 302 -> 200

Response message: Found -> OK

Line: 122

http://www.365key.com/rssfeed.aspx?orderby=p redirected to

http://www.365key.com/rss_p.xml

What to do: Usually nothing.

Response status code: 302 -> 200

Response message: Found -> OK

Line: 122

http://groups-beta.google.com/group/guoshuang redirected to

http://groups.google.com/group/guoshuang

What to do: Usually nothing.

Response status code: 302 -> 200

Response message: Found -> OK

Line: 122

List of directory redirects

The links below are not broken, but the document does not use the exact URL.

http://blog.blueidea.com/mini redirected to

http://blog.blueidea.com/mini/

What to do: Add a trailing slash to the URL.

Response status code: 302 -> 200

Response message: Object Moved -> OK

Line: 120

http://my.opera.com/guoshuang redirected to

http://my.opera.com/guoshuang/

What to do: Add a trailing slash to the URL.

Response status code: 301 -> 200

Response message: Moved Permanently -> OK

Line: 122

链接中缺少结尾的 “/”

[Edit on 2006-1-28 10:19:44 By guoshuang]

google map 2 ip location

Jan 26, 2006 Author: | Filed under: Uncategorized

linghuchong 那里看到这个 ip 地址查询

代码挺有意思,AJAX 从本地得到(也许只是得到 类似 “xx电信局” 这样的字符串丢入 google map)

+:var res = { 0: “”, 1: “”, 2: “不明IP

地球欢迎您!”, 3: parseFloat(116.46), 4: parseFloat(39.92), 5: “hidden” }; res;

经纬度,然后丢入 google map API,值得仔细研究…

BTW:还看到其它gmail技巧

用gmail装自己常听的mp3,“移动”播放…

http://www.gookbox.com/

Using Gmail as My Spam Filter 利用 gmail 的垃圾邮件过滤功能,转发信件。

http://jeremy.zawodny.com/blog/archives/006035.html

类似站点:

AJAX Powered IP Location Lookup

不知道谁抄谁的?:(

[Edit on 2006-1-28 11:45:09 By guoshuang]

firefox 插件 Who Is This Person

Jan 26, 2006 Author: | Filed under: Uncategorized

截屏为 flock下的,和firefox道理一样。因为我是 deer park 2,不能安装这个插件,:(

Who Is This Person

都是一些用来找人的搜索,对中文支持有问题(至少对我这样的gb2312页面,应该是没有 encodeURI )。找美国佬或者名人还可以,象我这样岌岌无名之辈就只能 technorati 了,:)

[Edit on 2006-1-26 17:46:22 By guoshuang]

IE 7 beta build 5299 下载安装

Jan 23, 2006 Author: | Filed under: Uncategorized

guoshuang2006-02-13+请浏览 无升级绿色安装 IE 7

非正版windows用户安装说明(正版直接安装IE7-WindowsXP-x86-enu.exe即可):

1.下载 Internet7Build5299.rar,解压得到 IE7-WindowsXP-x86-enu.exe,继续解压到一个A目录中。

2.下载 iecustom.rar,解压得到 iecustom.dll,拷贝到 A目录中的update目录中,执行 update.exe 即可。

下载地址:

Internet7Build5299.rar

http://www.cnbeta.com//modules.php?name=News&file=article&sid=9904

iecustom.rar

http://www.jcxp.net/forums/index.php?showtopic=4499

装得快,崩溃得也不慢,:(慎重啊…

[Edit on 2006-1-23 14:37:31 By guoshuang]
[Edit on 2006-2-13 17:36:59 By guoshuang]

xyzproxy firefox 代理管理、切换插件

Jan 21, 2006 Author: | Filed under: Uncategorized

XYZProxy是一个firefox与flock的扩展,支持firefox0.8~1.6a版本与flock最新版,有以下功能:

* 导入代理

* 编辑代理

* 状态栏提示

* 下拉切换

* 单击开关代理

release notes:

改进了一点点界面

支持了flock

欢迎大家使用

via http://xyzboard.com/?q=node/77