没有样式就是最好的样式

Archive for February, 2006


IE 7 的条件注释判断

Feb 4, 2006 Author: | Filed under: Uncategorized

这个是 ie 7 beta 判断

这个是将来的IE 7正式版判断

user agent

* IE7 running on Windows Vista will send the following User-Agent header: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)

* IE7 running on Windows XP SP2 will send the following User-Agent header: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

via A quick note on the Beta 2 Preview user agent string

[Edit on 2006-2-4 10:28:46 By guoshuang]

IE 7 对 ClearType(字体边缘处理)支持

Feb 4, 2006 Author: | Filed under: Uncategorized

在春节前安装使用IE 7的时候就发现了这个问题。和 linux 下默认显示的字体效果类似,IE7 的字体显示加入了 ClearType 处理。效果如下(下图为 cleartype 效果):

我个人认为 ClearType 在 CRT 显示器的效果并不好(字体显示是“糊”的,不“清晰”),但对 LCD 有意义。IE 7 设置中可以关掉ClearType

via ClearType Text in IE7

[Edit on 2006-2-4 10:21:18 By guoshuang]

IE 7 beta 2 对 web coding 的影响

Feb 4, 2006 Author: | Filed under: Uncategorized

当然,这还只是 IE7 beta 而不是正式版,还会有很多变化。如果你嫌下面的话啰嗦的话,其实一句话就够了,暂时使用微软的条件注释(Conditional Comments)来取代那些 css hack 的做法。比如

具体可以看 Fixing SitePoint for IE7

IE 7 beta 2仍然没有支持 !important,但干掉了 * html, _property 以及 /**/ 注释的CSS hack 用法。部分改动如下:

CSS 的改动:

* We made major changes to our box model to support overflow correctly on non-replaced block level elements and inline-block elements.

* We enabled :hover on all elements, not just on tag

加入 hover 对 a 以外标签的支持

* We make background-attachment:fixed work on all elements, not just body

加入 background-attachment:fixed 对body 以外元素的支持

* We fixed a number of parser bugs like * html, _property and the /**/ comment bug

干掉了 * html, _property 和 /**/ 的 css hack 用法

加入的 CSS 新功能:

* Fixed positioning. This allows interesting layouts of sticky menus and sidebars.

固定定位。应该就是 position:fixed 吧

* Enhanced Selector support: first-child, adjacent, attribute, and child selectors

As we were implementing attribute selectors we also added support for CSS 3 attribute selectors: prefix, suffix and substring.

更多的选择器支持!回头测试一下。

BTW:目前看来,beta 2 目前乱七八糟、莫名其妙的bug还很多,但 webmaster 们至少需要为即将到来的 ie 7 做些思想准备了。

via http://blogs.msdn.com/ie/archive/2006/02/02/523679.aspx

guoshuang2006-02-05+我用 5299测试,根本不是那么回事。也可能是因为这个版本的问题。

相关资料:

Cascading Style Sheet Compatibility in Internet Explorer 7

不长记性的 netscape 8.1

Feb 3, 2006 Author: | Filed under: Uncategorized

已经安装使用 Netscape8.1 几天了,总体感觉一个字—“笨”

这个安装包18M,包括 Netscape ISP, McAfee, Rhapsody, Real Arcade 和 WeatherBug等。

网景真是不长记性,原来的6.x 7.x 包括8.0 为什么死了?看看 mozilla(suite) 的下场,人们需要的是短小精干的软件,浏览器就是浏览网页,仅此而已。非要把浏览器做的大而全,我真不知道网景在想什么…

杂乱的UI设计,密密麻麻的功能区,迟缓的菜单响应,新意,新意在哪?我们为什么要抛弃 firefox或者 opera,甚至 ie来拥抱 netscape,给个理由先。

BTW:microsft 放出 ie beta 5296,仍然需要 genuine 验证,比上次泄漏的5299版本低。如果感兴趣,自己搜索旧日志看吧,一句话—“ie 7还是垃圾”…

[Edit on 2006-2-3 12:25:22 By guoshuang]

幸亏我还有opera

Feb 3, 2006 Author: | Filed under: Uncategorized

一段不完整的垃圾留言就会导致我的 ubb(javascript)无响应或者出错。甚至转发到这里(正文)也会出错,导致页面显示的崩溃…还好我能够在opera中 f12 暂时关闭 javascript,才能够至少看看问题何在。可我的留言修改居然是 onclick=”…”,昏倒…于是利用opera的缓存功能,前进后退,f12切换js禁用|启用状态,然后直接在地址栏执行 document.forms[x].submit() 删除垃圾留言…

总算先从崩溃中逃了出来…

crack.txt

大约是多了个没结束的 a,check it later…

[Edit on 2006-2-3 11:59:34 By guoshuang]

opera 9 新功能 tab预览和 Widgets

Feb 2, 2006 Author: | Filed under: Uncategorized

鼠标在tab 标签页停留时预览该 tab 的内容。我记得 firefox有个类似的插件,而且据说IE 7也有类似功能,但不是 hover (鼠标停留)时,而预览显示在一个独立的窗口中。我个人觉得这玩艺儿没什么用,就是持续打击我可怜的低配置电脑…

原文猜测是类似 firefox extention 那样的东西,看来opera也必须学习firefox的那种开放精神而不总是埋头苦干。交流总是重要和必需的,看来还是我那句话,众人拾柴火焰高啊…

[Edit on 2006-2-2 11:12:21 By guoshuang]