media-naming-guide.html 6.0 KB

123456789101112131415161718
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <title>多媒体命名规范指南 | 偶游前端</title>
  7. <meta name="generator" content="VuePress 1.9.7">
  8. <meta name="description" content="">
  9. <link rel="preload" href="/docs/assets/css/0.styles.d94ea0ab.css" as="style"><link rel="preload" href="/docs/assets/js/app.2431a00a.js" as="script"><link rel="preload" href="/docs/assets/js/2.f7777874.js" as="script"><link rel="preload" href="/docs/assets/js/22.d06b9c4f.js" as="script"><link rel="prefetch" href="/docs/assets/js/10.9d1aad53.js"><link rel="prefetch" href="/docs/assets/js/11.30b895bf.js"><link rel="prefetch" href="/docs/assets/js/12.875be95c.js"><link rel="prefetch" href="/docs/assets/js/13.5a9efc48.js"><link rel="prefetch" href="/docs/assets/js/14.b907632b.js"><link rel="prefetch" href="/docs/assets/js/15.4905f579.js"><link rel="prefetch" href="/docs/assets/js/16.76ac9ec7.js"><link rel="prefetch" href="/docs/assets/js/17.2ddbc696.js"><link rel="prefetch" href="/docs/assets/js/18.38ed2bd0.js"><link rel="prefetch" href="/docs/assets/js/19.29f587ce.js"><link rel="prefetch" href="/docs/assets/js/20.fedca497.js"><link rel="prefetch" href="/docs/assets/js/21.70316301.js"><link rel="prefetch" href="/docs/assets/js/23.cfe38809.js"><link rel="prefetch" href="/docs/assets/js/24.ca50f3c1.js"><link rel="prefetch" href="/docs/assets/js/3.a1131818.js"><link rel="prefetch" href="/docs/assets/js/4.d31729fa.js"><link rel="prefetch" href="/docs/assets/js/5.4e04916d.js"><link rel="prefetch" href="/docs/assets/js/6.91b60684.js"><link rel="prefetch" href="/docs/assets/js/7.467cbd0c.js"><link rel="prefetch" href="/docs/assets/js/8.de63b438.js"><link rel="prefetch" href="/docs/assets/js/9.d353de00.js">
  10. <link rel="stylesheet" href="/docs/assets/css/0.styles.d94ea0ab.css">
  11. </head>
  12. <body>
  13. <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/docs/" class="home-link router-link-active"><!----> <span class="site-name">偶游前端</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <!----></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><!----> <ul class="sidebar-links"><li><a href="/docs/" aria-current="page" class="sidebar-link">偶游前端(冯垣玮)</a></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>项目</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/currentProgram/guide.html" class="sidebar-link">智能鞋落地页</a></li><li><a href="/docs/currentProgram/uni-app-pro.html" class="sidebar-link">智能鞋小程序商城</a></li><li><a href="/docs/currentProgram/customerService.html" class="sidebar-link">智能鞋客服系统</a></li><li><a href="/docs/currentProgram/tank.html" class="sidebar-link">坦克专题</a></li><li><a href="/docs/currentProgram/hiydMini.html" class="sidebar-link">hi运动教练小程序</a></li><li><a href="/docs/currentProgram/hiydShop.html" class="sidebar-link">hi运动商城</a></li><li><a href="/docs/currentProgram/webGame.html" class="sidebar-link">多玩游戏大厅</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="多媒体命名规范指南"><a href="#多媒体命名规范指南" class="header-anchor">#</a> 多媒体命名规范指南</h1> <hr> <p>多媒体命名规范指南</p> <hr> <h2 id="文档目录"><a href="#文档目录" class="header-anchor">#</a> 文档目录</h2> <ol><li><a href="#1-%E5%9B%BE%E7%89%87">图片</a></li> <li><a href="#2-%E6%9C%89%E5%A3%B0%E5%AA%92%E4%BD%93">有声媒体</a></li> <li><a href="#3-%E5%AD%97%E4%BD%93">字体</a></li></ol> <h3 id="_1-图片"><a href="#_1-图片" class="header-anchor">#</a> 1 图片</h3> <p><strong>【强制】</strong> 由于图片通常会配合自动切图、gulp自动生成图片样式的工作流进行,所以图片的命名规则跟CSS中对图片的命名规则保持一致:</p> <ul><li><strong>背景</strong>:以<code>bg</code>作为命名空间,例如:<code>bg-body</code> 等;</li> <li><strong>图标</strong>:以<code>ico</code>作为命名空间,例如:<code>ico-close</code> 等;</li> <li><strong>LOGO</strong>:以<code>logo</code>作为命名空间,例如:<code>logo-duowan</code> 等;</li> <li><strong>内容图像</strong>:以<code>img</code>作为命名空间,例如:<code>img-userGuide</code> 等;</li> <li><strong>雪碧图</strong>:以<code>sprite</code>作为命名空间,例如:<code>sprite-form</code> 等;</li></ul> <h3 id="_2-有声媒体"><a href="#_2-有声媒体" class="header-anchor">#</a> 2 有声媒体</h3> <p><strong>【强制】</strong> 包括音频、视频、flash,根据具体情况命名。音视频文件一般别放在SVN中上传到CDN服务器;</p> <h3 id="_3-字体"><a href="#_3-字体" class="header-anchor">#</a> 3 字体</h3> <p><strong>【强制】</strong> 为了尊重字体设计者的劳动以及版权,字体命名(包括CSS中的@font-face对font-family的命名)应当遵循字体本身的名称;</p></div> <footer class="page-edit"><!----> <!----></footer> <!----> </main></div><div class="global-ui"></div></div>
  14. <script src="/docs/assets/js/app.2431a00a.js" defer></script><script src="/docs/assets/js/2.f7777874.js" defer></script><script src="/docs/assets/js/22.d06b9c4f.js" defer></script>
  15. </body>
  16. </html>