《Build Your Own Website The Right Way Using HTML & CSS, 3rd Edition》笔记三
2012-01-2614、上下文选择器
.galleryphoto p span {
font-weight: normal;
color: gray;
This contextual selector translates as “for every span inside a p that’s inside an element using a class of galleryphoto, make it normal font and gray”.
15、在使用background-image时,一定要先定义一个background-color。以防图片不下载时造成不可读或其他可用性问题。
16、在使用background-image时,不妨将图片高度设置的比本来的高一些,这样如果用户放大网页导致字体增大时破坏原来的样式。
《Build Your Own Website The Right Way Using HTML & CSS, 3rd Edition》笔记二
2012-01-268、css 中 a : link , a : visited , a : hover , a : active 要按顺序写,可简记为LVHA-Love , Ha?
9、1em is the height of the M character in any font .
10、 阅读全文 »
《Build Your Own Website The Right Way Using HTML & CSS, 3rd Edition》笔记一
2012-01-261、div是divide的缩写,作用是divide up a web page,a container that’s used to group related items together。弄懂了这个词的英文表达,有助于拿捏好什么时候该加上一个div什么时候不该加的分寸。
2、HTML的注释写法<!– 良好的注释习惯有助于日后debug,修改 –>
3、a stands for anchor ,不要使用简单的诸如“点击这里”等锚文本,对可用性及易用性都非常不好。 阅读全文 »
玩转Nook2系列二:折腾总结
2012-01-12距离上一篇博文有三个多月了,本来想把Nook2折腾的点点滴滴写下来的,无赖拖到今天。
首先目标要摆正,尽管Nook2的系统是Android,但倒腾的目的只有一个——更好的看书!
玩转Nook2系列一:Nook2开箱文
2011-09-22话说8月的最后一天,“一时冲动”,在巴诺官网订购了一台Nook2,开始了海外购物的第一单。这个小家伙飘洋过海,历经各种磨难,经过20天时间,终于修成正果——来到我的手中。此间辛苦,以后在表,今天送上玩转Nook2系列一:开箱文。