- 博客(5)
- 收藏
- 关注
原创 html5 polyfill
首先我们可以使用这个js库来检测浏览器支持不支持html5的一些功能:[url]http://modernizr.com/download/[/url]它会在html标签的class中加入标记,然后就可以使用例如:[code="java"]/* Simulated box shadow using borders: */.box { border-bottom:...
2012-05-01 00:11:56
218
原创 problem 浏览器低级版本不识别元素问题
如果浏览器不识别header footer article这些元素的时候,我们可以使用javascript代码来辅助实现:[code="java"] document.createElement('header'); document.createElement('footer'); document.createElement('article');[/code]...
2012-04-29 22:28:29
115
原创 section and articles
[color=red]section[/color]The section element represents a generic section of a document or application. A section, in this context, [color=red]is a thematic grouping of content, typically with a ...
2012-04-29 20:06:43
146
原创 header footer nav 标签
header footer nav标签的使用:[code="java"] XHTML Doctype h1 { margin-top: 0; color: red; } div[role="main"] { color: black; } My First Website ...
2012-04-29 01:08:16
210
原创 html5基础模板
Html5 doc type使用: 这个IE6里面也是有效的。即使浏览器不支持html5,我们还是可以使用这个。html5基础模板[code="java"] XHTML Doctype h1 { margin-top: 0; color: red; } Hi there alert("hi t...
2012-04-28 22:11:59
162
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人