可是我好郁闷啊,到底怎么样才可以弄出那段html片头代码?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head><body></body></html>

我知道,如果安装有zen coding插件,那就可以ctrl+alt+shift+H,就可以快速生成这段代码。但是,zen coding不及emmet好用,而且,我输入a,再按tab键的时候是不会自动生成<a></a>....所以,不得已才放弃zen coding。


慕森卡
浏览 224回答 2
2回答

江户川乱折腾

Sublime Text 2中,通过自定义Snippets,实现代码自动补全

慕桂英3389331

html:4t<!DOCTYPE&nbsp;HTML&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;HTML&nbsp;4.01&nbsp;Transitional//EN"&nbsp;"http://www.w3.org/TR/html4/loose.dtd"><html&nbsp;lang="${lang}"><head> &nbsp;&nbsp;&nbsp;&nbsp;<meta&nbsp;http-equiv="Content-Type"&nbsp;content="text/html;charset=${charset}"> &nbsp;&nbsp;&nbsp;&nbsp;<title>Document</title></head><body> &nbsp;&nbsp;&nbsp;&nbsp;${child}</body></html>html:4s<!DOCTYPE&nbsp;HTML&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;HTML&nbsp;4.01//EN"&nbsp;"http://www.w3.org/TR/html4/strict.dtd"><html&nbsp;lang="${lang}"><head> &nbsp;&nbsp;&nbsp;&nbsp;<meta&nbsp;http-equiv="Content-Type"&nbsp;content="text/html;charset=${charset}"> &nbsp;&nbsp;&nbsp;&nbsp;<title>Document</title></head><body> &nbsp;&nbsp;&nbsp;&nbsp;${child}</body></html>html:xt<!DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;XHTML&nbsp;1.0&nbsp;Transitional//EN"&nbsp;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html&nbsp;xmlns="http://www.w3.org/1999/xhtml"&nbsp;xml:lang="${lang}"><head> &nbsp;&nbsp;&nbsp;&nbsp;<meta&nbsp;http-equiv="Content-Type"&nbsp;content="text/html;charset=${charset}"&nbsp;/> &nbsp;&nbsp;&nbsp;&nbsp;<title></title></head><body> &nbsp;&nbsp;&nbsp;&nbsp;${child}</body></html>html:xs<!DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;XHTML&nbsp;1.0&nbsp;Strict//EN"&nbsp;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html&nbsp;xmlns="http://www.w3.org/1999/xhtml"&nbsp;xml:lang="${lang}"><head> &nbsp;&nbsp;&nbsp;&nbsp;<meta&nbsp;http-equiv="Content-Type"&nbsp;content="text/html;charset=${charset}"&nbsp;/> &nbsp;&nbsp;&nbsp;&nbsp;<title>Document</title></head><body> &nbsp;&nbsp;&nbsp;&nbsp;${child}</body></html>html:xxs<!DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;XHTML&nbsp;1.1//EN"&nbsp;"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html&nbsp;xmlns="http://www.w3.org/1999/xhtml"&nbsp;xml:lang="${lang}"><head> &nbsp;&nbsp;&nbsp;&nbsp;<meta&nbsp;http-equiv="Content-Type"&nbsp;content="text/html;charset=${charset}"&nbsp;/> &nbsp;&nbsp;&nbsp;&nbsp;<title>Document</title></head><body> &nbsp;&nbsp;&nbsp;&nbsp;${child}</body></html>html:5<!doctype&nbsp;html><html&nbsp;lang="${lang}"><head> &nbsp;&nbsp;&nbsp;&nbsp;<meta&nbsp;charset="${charset}"> &nbsp;&nbsp;&nbsp;&nbsp;<title>Document</title></head><body> &nbsp;&nbsp;&nbsp;&nbsp;${child}</body></html>
打开App,查看更多内容
随时随地看视频慕课网APP