我正在彻底修改我的博客并且… HTML5 好吗?
我正在彻底修改我的博客 (http://gilesvangruisen.com/),并且我将推出新内容尽可能多的技术。
我是一名网页设计师/开发人员,浏览器百分比如下: 42% 火狐浏览器 39% 狩猎 7% 铬 7% IE
我的“rethunk”网站可以使用 HTML5 文档类型吗?
我谢谢你。 -贾尔斯:)
I'm overhauling my blog (http://gilesvangruisen.com/) and I'm going to be pushing new technologies as much as possible.
I'm a web designer/developer and the browser percentage is as follows:
42% Firefox
39% Safari
7% Chrome
7% IE
Is it OK to use the HTML5 doctype for my "rethunk" site?
I thank you.
-Giles :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以安全地使用 HTML5 doctype
,它只会在 大多数浏览器,包括 IE6。唯一需要注意的是,新的 HTML5 元素(即
header
、<代码>页脚,输入类型="number"
< /a> 等)并非所有浏览器都直接支持,包括当前版本。You can safely use the HTML5 doctype
<!doctype html>
and it will just render as HTML strict on most browsers, including IE6. Only caveat is that the new HTML5 elements (i.e.header
,footer
,input type="number"
, etc) isn't directly supported by all browsers, including the current versions.您应该能够轻松使用 HTML5。要检测哪些浏览器支持某些下一代浏览器技术,您应该使用 modernizr 等工具。
You should feel comfortable using HTML5. To detect which browsers support some of the next generation browser technologies, you should use a tool like modernizr.
该网站对于比较浏览器对功能的支持非常有用:http://caniuse.com/
另外,您可以单击“导入统计数据”,它允许您将 Google Analytics 配置文件链接到该页面,以便它根据您网站的浏览器访问次数定制响应。
This site is really useful for comparing browser support for features: http://caniuse.com/
Also, you can click "Import stats", which lets you link your Google Analytics profile to the page so it tailors the responses to your site's browser access numbers.
我会认真考虑使用 HTML5 Boilerplate 作为起点。它是 HTML5(显然),但已经过与各种不同浏览器的兼容性测试,以确保它仍然可以在任何地方正确显示。它还内置了 jQuery、Modernizr 和 Normalizr,因此您拥有了良好的构建基础。
我从未将它用于大多数静态网站,但事实证明它是我们各种应用程序的良好起点。
I would give serious thought to using the HTML5 Boilerplate as a starting point. It's HTML5 (obviously) but has been tested for compatibility with a variety of different browsers to make sure it still displays correctly everywhere. It also has jQuery, Modernizr, and normalizr wired in so you've got a good foundation on which to build.
I've never used it for a mostly static site, but it has proven a good starting point for our various apps.