wjlgryx 发表于 2013-2-7 22:49:06

22个HTML5的初级技巧

<span style="">Web技术的发展速度太快了,如果你不与时俱进,就会被淘汰。因此,为了应对即将到来的HTML5,本文总结了22个HTML5的初级技巧,希望能对你进一步学习好HTML5会有所帮助。
1. 新的Doctype声明
XHTML的声明太长了,我相信很少会有前端开发人员能手写出这个Doctype声明。
<div class="syntaxhighlighter" style="font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-style: normal !important; font-weight: normal !important; vertical-align: baseline !important; margin-top: 2em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; text-align: left !important; float: none !important; height: auto !important; line-height: 24px; width: 558px !important; padding: 2px !important;"><div class="lines" style="font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-style: normal !important; font-weight: normal !important; vertical-align: baseline !important; text-align: left !important; float: none !important; height: auto !important; line-height: 24px; padding: 0px; margin: 0px !important;"><div class="line alt1" style="font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; font-style: normal !important; font-weight: normal !important; vertical-align: baseline !important; text-align: left !important; float: none !important; height: 24px; line-height: 24px; background-color: #e3eedc !important; padding: 0px; margin: 0px !important;">1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
页: [1]
查看完整版本: 22个HTML5的初级技巧