看到 CSS tips and tricks, Part 2,仅列出我感兴趣的部分。

a 链接样式声明的正确顺序

:link :visited :hover :active.

:focus 与 :hover 之间,位置后面的优先,这取决你你想要的效果。

css browser hack

这个大家都知道了,IE 不认识 > 选择器,用来屏蔽IE。

html>body p {

/* 样式表声明内容 */

}

这个倒是第一次听说,IE认识,其他浏览器不认识。

* html p {

/* 样式表声明内容 */

}

给IE看但 MAC IE 不认识。注释加 的hack 语法

Sometimes you want to feed some CSS to IE/Win but not IE/Mac. To do this you can use the commented backslash hack:

/* */

html p {

declarations

}

/* */

很老的方法,IE特有的 条件注释判断( conditional comments

CSS盒子(Box)模型大小问题

outline 是个好东西,不占空间,可惜支持的浏览器太少(opera可以)。

这是 技巧1 的部分,大多是一些入门的东西,有兴趣可以看看。

[Edit on 2005-3-25 10:11:11 By guoshuang]