evantianx / Bloooooooog

Place to record what I thought and learned
0 stars 0 forks source link

周读 #17

Open evantianx opened 7 years ago

evantianx commented 7 years ago

Modernizing our Progressive Enhancement Delivery

从升级HTTP2.0和使用Service Worker进行离线存储两方面讲述其网站的升级之路。

关键词: Server Push Service Worker

W3C Server Push Making A Service Worker: A Case Study CanIUse HTTP2支持率

evantianx commented 7 years ago

Get Started with Debugging JavaScript in Chrome DevTools

简易的Chrome DevTools调试入门

evantianx commented 7 years ago

Making input type=date complicated

关于Date Picker的优化.

evantianx commented 7 years ago

initial-letter

介绍了CSS中的initial-letter这个属性。

initial-letter: normal | [<number> <integer>];

首字母大写以往的写法

将首字母用某个标签包裹,之后添加样式,这样做会徒增很多无用标签,同时多次添加也会显得很麻烦

使用initial-letter

<p class="subhead">Once upon a time in a faraway land...<p>
.subhead {
  initial-letter: 2;
}

或者

//这样同时还可以为首字母添加其他样式
.subhead::first-letter {
  initial-letter: 2;
}

然而,浏览器支持很差...