IntersectionObserver API
可以自动”观察”元素是否可见,Chrome 51+ 已经支持。由于可见(visible)的本质是,目标元素与视口产生一个交叉区,所以这个 API 叫做”交叉观察器”
|
|
IntersectionObserver API
可以自动”观察”元素是否可见,Chrome 51+ 已经支持。由于可见(visible)的本质是,目标元素与视口产生一个交叉区,所以这个 API 叫做”交叉观察器”
|
|
Block fomatting context (简称BFC)
Box: 盒子,布局的基本单位。display ,决定盒子的类型
卓越:系统性和大局观
正确拼写 (IDE 的 typo 提示(单词拼写错误提示))
准确用词
理解 API 的作用和 上下文场景,成对出现的正反义词不可混用
eg.
message、notification、news
message:一般指双方通信的消息,是内容载体。而且经常有来有往、成对出现。比如 postMessage() 和 receiveMessage()
notification: 通知 new NotificationManager()
news:较长的消息,比 notification 更重量级 getTopNews
feed:订阅 fetchWeitaoFeeds
优点方便管理 缺点需要安装ruby环境,Windows环境比较麻烦
系统环境 win10 x64
1 Gem::InstallError: The ‘redcarpet’ native gem requires installed build tools.
2.C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:40:in block in se
tup': You have already activated colorator 1.1.0, but your Gemfile requires colorator 0.1. Prep
endingbundle exec` to your command may solve this. (Gem::LoadError)
检查 Gemfile,Gemfile.lock 文件是否缺少,重新Builder install
不支持百分比
2x+y = width;y= x+1;或者y=x-1;
|
|
|
|