存档

2008年11月 的存档

终于初步搞定7100V了

2008年11月16日 雨无形 没有评论

经过几天不停的刷机,装软件,看论坛,除了彩信以外已经基本搞定了。

继续研究彩信。。。

分类: 电子玩意 标签:

Acid2 Browser Test

2008年11月14日 雨无形 没有评论

恕我火星了,今天才知道有Acid2 Browser Test这个东西,动手测试了一下手头的浏览器,IE8 FF3 谷歌浏览器都正常FF2和IE7及以下版本都不正常。

上网搜索了一下

Acid2 Browser Test

Acid2 is a test page, written to help browser vendors ensure proper support for web standards in their products. Please take the Acid2 test!

If you’d like more in-depth information about the Acid2 test, we’ve provided a detailed technical guide that explains how the test works.

Note: Some 827 people (rough estimate, contents may have settled during shipping) have written to point out that the CSS used in the test is invalid. This is deliberate, as a means of exposing the ability of user agents to handle invalid CSS properly.

Note: When taking the test, you should use the default settings of the browser you are testing. Changing the zoom level, minimum font size, applying a fit-to-width algorithm, or making other changes may alter the rendition of the Acid2 page without this constituting a failure in compliance. (Added 21 July 2006)

更深层次的研究放在以后吧,工作先

分类: css, 网页设计 标签:

详解CSS的优先权(ZT)

2008年11月14日 雨无形 没有评论

原文出处:http://www.planabc.net/2008/05/06/css_specificity/

看这篇文章之前,对这个问题一直没深入研究,导致有时候遇到一些问题会很麻烦,看到这篇文章让我茅塞顿开,转帖回来保存一下以便今后复习。

发现很多朋友对 CSS 的优先权不甚了解,规则很简单。需要说明的一点,如果你的样式管理需要深层判断 CSS 的优先权,更应反思自己的 CSS 代码,是否合理?是否优化?

CSS2.1 中规定了关于 CSS 规则 Specificity(特异性)的计算方式,用一个四位的数字串(注:CSS2 中是用三位)来表示,最后以 Specificity 的高低判断 CSS 的优先权。

Specificity 具体的计算规则:

  • 元素的 style 样式属性,加 1,0,0,0。
  • 每个 ID 选择符(#id),加 0,1,0,0。
  • 每个 class 选择符(.class)、每个属性选择符(例 [attr=”"] )、每个伪类(例 :hover),加 0,0,1,0。
  • 每个元素或伪元素(例 :firstchild)等,加 0,0,0,1。
  • 其他选择符(例 全局选择符 *,子选择符 >),加 0,0,0,0。

最后逐位相加数字串,得到最终的 Specificity 值,按照从左到右的顺序逐位比较。

除了 Specificity 还有一些其他规则:

  • !important 声明的规则高于一切,如果 !important 声明冲突,则比较优先权。
  • 如果优先权一样,则按源码中“后来者居上”的原则。
  • 由继承而得到的样式属性不参与 specificity 的计算,低于一切其他规则(例 全局选择符 * )。

范例分析:

h1 {color: red;}/* 只有一个普通元素加成,结果是 0,0,0,1 */body h1 {color: green;}/* 两个普通元素加成,结果是 0,0,0,2 *//*0,0,0,1 小于 0,0,0,2 ,后者胜出*/

h2.grape {color: purple;}/* 一个普通元素、一个class选择符加成,结果是 0,0,1,1*/h2 {color: silver;}/*一个普通元素,结果是 0,0,0,1 *//*0,0,1,1 大于 0,0,0,1 ,前者胜出*/

html > body table tr[id=”totals”] td ul > li {color: maroon;}/* 7个普通元素、一个属性选择符、两个其他选择符(子选择符 >),结果是0,0,1,7 */li#answer {color: navy;}/* 一个ID选择符,一个普通选择符,结果是0,1,0,1 *//*0,0,1,7 小于 0,1,0,1,后者胜出*/
分类: css, 网页设计 标签:

先记下一些刚学会的黑莓技巧吧

2008年11月11日 雨无形 没有评论

1.隐藏/移动桌面图标

同时按下alt+滚轮键即可出现选择框,选择隐藏应用程序即可,如下图,移动同理,见下图

 

分类: 电子玩意 标签:

新入手个黑莓

2008年11月11日 雨无形 没有评论

新入手个黑莓7100V 很老的机器了,只是想尝试一下传说中的黑莓,到手以后发现果然不是用得那么习惯,慢慢尝试吧,开了这个栏目将我尝试的心得都记录下来吧

 

分类: 电子玩意 标签: