前端开发工程师如何在2013年里提升自己——阅读笔记(五)

三. 面向未来的开发(The Future)

第一篇文章:The CSS of Tomorrow, Peter Gasston

这篇文章中介绍了很多CSS的新用法,让我看的眼花缭乱。看过之后简直不敢声称自己会CSS了。具体内容大家自己参见ppt吧,这里记录下我最感兴趣的页面布局相关的部分。

1. Flexbox

.holder { display: flex; }
.child { width: 30%; }

.child { flex: 1; }

.a { flex: 2; }
.b { flex: 1; }

.outer { flex-direction: column; }
.a { flex: 2; }
.b { flex: 1; }

.outer { flex-direction: column; }
.a, .b{ order: 2; }
.c { order: 1; }

2. Grid Layout

E {
    display: grid;
    grid-definition-columns: 1fr 1fr 2fr;
}

E {
    grid-definition-columns: 1fr 1fr 2fr;
    grid-definition-rows: 10em auto 40px;
}

F {
    grid-column-position: 2;
    grid-row-position: 2;
}

.a { grid-column: 2 2; }
.b { grid-row-span: 3; }

E {
    grid-template:
      'head head head'
      'nav main main'
      'foot foot foot';
}
Grid Templates

.a { grid-area: 'head'; }
.b { grid-area: 'main'; }

3. Overflow

E { overflow-x: pages; }

4. Regions

.a { flow-into: foo; }
.b { flow-from: foo; }

.b, .c, .d { flow-from: foo; }

文章中涉及的其他CSS新特性的链接总结在下面:

  1. Root-relative units
  2. Intrinsic & Extrinsic Sizing
  3. Selector另外一个链接
  4. Positioning
  5. Media Queries
  6. Device Adaptation
  7. Images
  8. Exclusions & Shapes
  9. Filters
  10. Masking
  11. Cascading Variables
  12. Hierarchies


第二篇文章:The Future of JavaScript, Dave Herman

这篇文章和上篇文章的感受一样,就是学习js是任重而道远的一件事,有太多知识点需要钻研了。

一个链接:A Few New Things Coming To JavaScript


第三篇文章:Web Components and the Future of Web App Development, Eric Bidelman

这篇文章暂时无法访问。

几个链接:

  1. JavaScript: Object.observe
  2. Model-driven Views: Design
  3. Detect DOM changes with Mutation Observers
  4. What the Heck is Shadow DOM?


上一篇文章:前端开发工程师如何在2013年里提升自己——阅读笔记(四)

下一篇文章:前端开发工程师如何在2013年里提升自己——阅读笔记(六)

转载于:https://my.oschina.net/warmcafe/blog/100849

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值