![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HTML5
iteye_18061
这个作者很懒,什么都没留下…
展开
-
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
problem 浏览器低级版本不识别元素问题
如果浏览器不识别header footer article这些元素的时候,我们可以使用javascript代码来辅助实现:[code="java"] document.createElement('header'); document.createElement('footer'); document.createElement('article');[/code]...原创 2012-04-29 22:28:29 · 115 阅读 · 0 评论 -
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 阅读 · 0 评论