Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

字体 #16

Open
magicdawn opened this issue Jan 7, 2015 · 7 comments
Open

字体 #16

magicdawn opened this issue Jan 7, 2015 · 7 comments
Labels

Comments

@magicdawn
Copy link
Owner

字体什么的

highlight

pre,code {
    white-space: pre;
    display: inline-block;
    margin: 0;
    font: 14px/1.8em Menlo, Consolas, "Courier New", Courier, "Liberation Mono", monospace;
    padding: 0 0.5em
}

jekyllrb.com 主站,字体

font: 300 21px Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
/* font-weight : 300*/
@magicdawn magicdawn added the CSS label Jan 7, 2015
@magicdawn
Copy link
Owner Author

sans-serif 无衬线 字体,对应中文黑体, 常用 Helvetical,Arial ...
serif 衬线体,例如 A的下划线

@magicdawn
Copy link
Owner Author

less

@import "xxx.css" 跟 @import (css)"xxx.css" 一样,由ext推断出
import css 会保留原样.........坑...

@import (inline) 就是导入文本,但不处理

@import (less) 导入less

@magicdawn
Copy link
Owner Author

gulp-less 这个插件 有问题不报错... 找了半天...

@magicdawn
Copy link
Owner Author

meituan font

main site

  font: 400 14px/1.5 "Hiragino Sans GB","WenQuanYi Micro Hei",tahoma,sans-serif;
  • win7 x64 chrome v42 , 实际render字体为 SimSun
  • Hiragino Sans GB , 常说的 冬青黑体

mos

主要是这个,每级都重复写font-family !!!

font-family: "Microsoft Yahei","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;

@magicdawn
Copy link
Owner Author

http://jobs.ele.me

font-family: 'Helvetica Neue', 'Microsoft Yahei', 'Hiragino Sans GB', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;

@magicdawn magicdawn changed the title CSS相关 字体 Aug 6, 2015
@magicdawn
Copy link
Owner Author

rem

单位 rem , 是相对 root element的font-size值的

html{
  font-size: 10px;
}

p{
  margin-top: 1.5rem; // 1.5 * 10 = 15px
}

@magicdawn
Copy link
Owner Author

36kr.com

font-family: 'Lantinghei SC', 'Open Sans', Arial, 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑, STHeiti, 'WenQuanYi Micro Hei', SimSun, sans-serif;

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

No branches or pull requests

1 participant