IIssNan's Notes

Quick notes


  • 首页

  • 归档

  • 标签

  • 搜索

使用HTML 5语义化标签

发表于 2014-02-25 | | 阅读次数

为了在主流浏览器上使用HTML 5语义化标签,需要做一些修正,本文便是对这些修正原理的解释。
如果你正在寻找一个快速的解决方案,可以看以下HTML5 Shiv这个库。下载这个库的代码,然后在页面的head中使用以下代码即可:

1
2
3
<!--[if lt IE 9]>
<script type="text/javascript" src="path/to/html5-shiv.js></script>
<![endif]-->

如果看看这个代码背后的原理,请继续往下。

阅读全文 »

Now I have to come to the crossroads in my life. I always knew what the right path was. Without exception, I knew, but I never took it. You know why? It was too damn hard!

女人香

If you can’t explain it simply, you don’t understand it well enough.

Albert Einstein

Learn Vimscript the Hard Way

发表于 2013-12-30 | | 阅读次数

Grunt - Cannot read property 'srcRaw' of undefined

发表于 2013-11-26 | | 阅读次数

今天看到grunt的github issues里面有人提到了这个问题,想起之前刚接触grunt时也曾碰到。

问题的原因在于grunt从0.3升级到0.4之后,文件的处理发生了改变(使用this.files api)。所以如果使用0.4版本的grunt,要确认Plugins是否与其兼容。

Issues里,shama提供了一种解决方案:

npm cache clean
npm install grunt@master 
grunt-contrib-concat@master

附:

grunt 0.3到0.4的升级说明

1…181920…37
IIssNan

IIssNan

胡编一通,乱写一气

183 日志
6 分类
111 标签
RSS
GitHub Twitter 豆瓣 知乎
© 2011 - 2017 IIssNan
由 Hexo 强力驱动
主题 - NexT.Pisces
0%