23.793cee7f.js 2.9 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[23],{299:function(_,v,t){"use strict";t.r(v);var r=t(13),s=Object(r.a)({},(function(){var _=this,v=_._self._c;return v("ContentSlotsDistributor",{attrs:{"slot-key":_.$parent.slotKey}},[v("h1",{attrs:{id:"多媒体命名规范指南"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#多媒体命名规范指南"}},[_._v("#")]),_._v(" 多媒体命名规范指南")]),_._v(" "),v("hr"),_._v(" "),v("p",[_._v("多媒体命名规范指南")]),_._v(" "),v("hr"),_._v(" "),v("h2",{attrs:{id:"文档目录"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#文档目录"}},[_._v("#")]),_._v(" 文档目录")]),_._v(" "),v("ol",[v("li",[v("a",{attrs:{href:"#1-%E5%9B%BE%E7%89%87"}},[_._v("图片")])]),_._v(" "),v("li",[v("a",{attrs:{href:"#2-%E6%9C%89%E5%A3%B0%E5%AA%92%E4%BD%93"}},[_._v("有声媒体")])]),_._v(" "),v("li",[v("a",{attrs:{href:"#3-%E5%AD%97%E4%BD%93"}},[_._v("字体")])])]),_._v(" "),v("h3",{attrs:{id:"_1-图片"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#_1-图片"}},[_._v("#")]),_._v(" 1 图片")]),_._v(" "),v("p",[v("strong",[_._v("【强制】")]),_._v(" 由于图片通常会配合自动切图、gulp自动生成图片样式的工作流进行,所以图片的命名规则跟CSS中对图片的命名规则保持一致:")]),_._v(" "),v("ul",[v("li",[v("strong",[_._v("背景")]),_._v(":以"),v("code",[_._v("bg")]),_._v("作为命名空间,例如:"),v("code",[_._v("bg-body")]),_._v(" 等;")]),_._v(" "),v("li",[v("strong",[_._v("图标")]),_._v(":以"),v("code",[_._v("ico")]),_._v("作为命名空间,例如:"),v("code",[_._v("ico-close")]),_._v(" 等;")]),_._v(" "),v("li",[v("strong",[_._v("LOGO")]),_._v(":以"),v("code",[_._v("logo")]),_._v("作为命名空间,例如:"),v("code",[_._v("logo-duowan")]),_._v(" 等;")]),_._v(" "),v("li",[v("strong",[_._v("内容图像")]),_._v(":以"),v("code",[_._v("img")]),_._v("作为命名空间,例如:"),v("code",[_._v("img-userGuide")]),_._v(" 等;")]),_._v(" "),v("li",[v("strong",[_._v("雪碧图")]),_._v(":以"),v("code",[_._v("sprite")]),_._v("作为命名空间,例如:"),v("code",[_._v("sprite-form")]),_._v(" 等;")])]),_._v(" "),v("h3",{attrs:{id:"_2-有声媒体"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#_2-有声媒体"}},[_._v("#")]),_._v(" 2 有声媒体")]),_._v(" "),v("p",[v("strong",[_._v("【强制】")]),_._v(" 包括音频、视频、flash,根据具体情况命名。音视频文件一般别放在SVN中上传到CDN服务器;")]),_._v(" "),v("h3",{attrs:{id:"_3-字体"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#_3-字体"}},[_._v("#")]),_._v(" 3 字体")]),_._v(" "),v("p",[v("strong",[_._v("【强制】")]),_._v(" 为了尊重字体设计者的劳动以及版权,字体命名(包括CSS中的@font-face对font-family的命名)应当遵循字体本身的名称;")])])}),[],!1,null,null,null);v.default=s.exports}}]);