Skip to content

[注解] [102] CSS 编码技巧 #30

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
cssmagic opened this issue Apr 23, 2016 · 3 comments
Open

[注解] [102] CSS 编码技巧 #30

cssmagic opened this issue Apr 23, 2016 · 3 comments
Labels

Comments

@cssmagic
Copy link
Owner

cssmagic commented Apr 23, 2016

花絮与注解

第 10 页 · 第三段

举例来说,要把表单元素的字体设定为与页面的其他部分相同,你并不需要重复指定字体属性,只需利用 inherit 的特性即可

“表单元素” 指的是输入框、按钮等元素。

为什么要把表单元素的字体设定为 “与页面的其他部分相同”?为什么表单元素不能自动从祖先元素那里继承字体样式?这是因为在浏览器的默认样式中,通常已经给表单元素指定了字体样式。当一个元素自身已经指定某个属性之后,就无法从祖先元素那里继承了。

第 12 页 · 最后一行

——在 Iterations 中实践响应式设计

Iterations 是 Basecamp 公司的一个内部管理工具。

Basecamp 公司原来叫做 37signals,从 2014 年开始改为现在的名字。Basecamp 原来是这家公司的主打产品的名字,后来当产品的名气远远超过公司名气的时候,公司改名也就是顺理成章的事情了。

延伸阅读

@yisibl
Copy link

yisibl commented Apr 26, 2016

不错,减少 hack。

@huanhuan077
Copy link

之前是知其然,不知其所以然。。。今天算是理解透了!

@Luyouwei1
Copy link

挺好

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants