HTML的十五大新特性
1.新的文档类型(New Doctype)
1 | <!Doctype html> |
2.脚本和链接无type
1 | <!-- HTML4或XHTML --> |
HTML的十五大新特性
1 | <!Doctype html> |
1 | <!-- HTML4或XHTML --> |
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
1.捆绑文件:多个样式表文件捆绑成一个文件
2.CSS Sprites:多个图片拼成一张大图,通过CSS来控制每个小图展示的位置
3.Image Map(图片/图像映射区域):通过坐标来控制显示导航
<img src="planets.jpg" border="0" usemap="#planetmap" alt="Planets" />
<map name="planetmap" id="planetmap">
<area shape="circle" coords="180,139,14" href ="venus.html" alt="Venus" />
<area shape="circle" coords="129,161,10" href ="mercur.html" alt="Mercury" />
<area shape="rect" coords="0,0,110,260" href ="sun.html" alt="Sun" />
</map>
模块很重要?
有了模块,我们就可以更方便的使用别人的代码想要什么功能,就加载什么模块。
目前,Javascript模块规范共有两种:CommonJS和AMD。
这里介绍AMD(Asynchronous Module Definition),意思是“异步模块定义”。
define(id?, dependencies?, factory);
其中:
id: 模块标识,可以省略。
dependencies: 所依赖的模块,可以省略。
factory: 模块的实现,或者一个JavaScript对象。