搜索

让IE支持HTML5标签

0530

在John Resig的“HTML5 Shiv”和Remy Sharp的“HTML5 enabling script”,均是用脚本创建新的HTML5标签的dom元素。

因此我们可以引用这样的脚本:

  1. (function(){
  2. if(!/*@cc_on!@*/0) return;
  3. var html5 = “abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,hgroup,header,mark,menu,meter,nav,output,progress,section,time,video”.split(‘,’),
  4. })();

继续阅读»

HTML5 and CSS3: Is your browser ready?

0515

html5 readiness

虽然,HTML5和CSS3还没最终确定一张交互图来清晰地展示未来浏览器支持哪些特性,但从上图,我们能明显的看到一点:IE离其有多远!

继续阅读»

给HTML5定义语义化的类名

0415

html5-doctype

Some time ago I was asked in an interview whether I preferred HTML or CSS. It was a bit like being asked if I prefer pens or pencils. I made an instinctive choice. I chose HTML. It’s the typography of data; the inflection in our voices; the grid of meaning upon which presentation can flourish. I find it beautiful when done well, and that’s why watching HTML 5 unfold with new and refined elements is fascinating to me.

继续阅读»