123456789101112131415161718 |
- <!DOCTYPE html>
- <html lang="en-US">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <title>多媒体命名规范指南 | 偶游前端</title>
- <meta name="generator" content="VuePress 1.9.7">
-
- <meta name="description" content="">
-
- <link rel="preload" href="/docs/assets/css/0.styles.e901f3ad.css" as="style"><link rel="preload" href="/docs/assets/js/app.9d841bbb.js" as="script"><link rel="preload" href="/docs/assets/js/2.a7c99d38.js" as="script"><link rel="preload" href="/docs/assets/js/23.793cee7f.js" as="script"><link rel="prefetch" href="/docs/assets/js/10.dffec12e.js"><link rel="prefetch" href="/docs/assets/js/11.29345ef4.js"><link rel="prefetch" href="/docs/assets/js/12.d71ff1f2.js"><link rel="prefetch" href="/docs/assets/js/13.eadceca7.js"><link rel="prefetch" href="/docs/assets/js/14.86faea9b.js"><link rel="prefetch" href="/docs/assets/js/15.8cc4ecb6.js"><link rel="prefetch" href="/docs/assets/js/16.e10f6d69.js"><link rel="prefetch" href="/docs/assets/js/17.255d9f5b.js"><link rel="prefetch" href="/docs/assets/js/18.9f1823b8.js"><link rel="prefetch" href="/docs/assets/js/19.03db59c9.js"><link rel="prefetch" href="/docs/assets/js/20.f003980f.js"><link rel="prefetch" href="/docs/assets/js/21.5ec8f90e.js"><link rel="prefetch" href="/docs/assets/js/22.77e586e0.js"><link rel="prefetch" href="/docs/assets/js/24.b9b4a05b.js"><link rel="prefetch" href="/docs/assets/js/25.12ca9a6b.js"><link rel="prefetch" href="/docs/assets/js/3.de84d37d.js"><link rel="prefetch" href="/docs/assets/js/4.47824499.js"><link rel="prefetch" href="/docs/assets/js/5.bd819ce0.js"><link rel="prefetch" href="/docs/assets/js/6.dfb8683d.js"><link rel="prefetch" href="/docs/assets/js/7.0e5538c2.js"><link rel="prefetch" href="/docs/assets/js/8.d3104372.js"><link rel="prefetch" href="/docs/assets/js/9.f4b68565.js">
- <link rel="stylesheet" href="/docs/assets/css/0.styles.e901f3ad.css">
- </head>
- <body>
- <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/funfet.html" class="sidebar-link">智能鞋官网</a></li><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>
- <script src="/docs/assets/js/app.9d841bbb.js" defer></script><script src="/docs/assets/js/2.a7c99d38.js" defer></script><script src="/docs/assets/js/23.793cee7f.js" defer></script>
- </body>
- </html>
|