• 欢迎访问少将全栈,学会感恩,乐于付出,珍惜缘份,成就彼此、推荐使用最新版火狐浏览器和Chrome浏览器访问本网站。
  • 吐槽,投稿,删稿,交个朋友,商务沟通v:ai_draw
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏少将全栈吧

开始使用 Amaze UI

点滴 admin 9年前 (2015-07-09) 2426次浏览 已收录 3个评论 扫描二维码

Amaze UI 是一个轻量级(所有 CSS 和 JS gzip 后 100 kB 左右)、 Mobile first 的前端框架, 基于开源社区流行前端框架编写(使用、参考的项目列表)。

获取 Amaze UI

下载文件

离线文档:

项目地址:

代码片段:

详见 Amaze UI Snippets

开始使用 Amaze UI

Starter Kit:

Gulp、NPM 构建的前端开发工作流,点击访问项目主页

使用 CDN

Amaze UI CDN: 域名解析服务由 DNSPod 提供,CDN 存储由七牛提供。

Copy

http://cdn.amazeui.org/amazeui/2.4.2/css/amazeui.css
http://cdn.amazeui.org/amazeui/2.4.2/css/amazeui.min.css
http://cdn.amazeui.org/amazeui/2.4.2/js/amazeui.js
http://cdn.amazeui.org/amazeui/2.4.2/js/amazeui.min.js
http://cdn.amazeui.org/amazeui/2.4.2/js/amazeui.ie8polyfill.js
http://cdn.amazeui.org/amazeui/2.4.2/js/amazeui.ie8polyfill.min.js
http://cdn.amazeui.org/amazeui/2.4.2/js/amazeui.widgets.helper.js
http://cdn.amazeui.org/amazeui/2.4.2/js/amazeui.widgets.helper.min.js

使用 Bower

Copy

bower install amazeui

移植的插件(使用示例)

获取源码

你可以从 GitHub 项目主页获取源代码。

文件及版本说明

文件说明

  • amazeui.css

    /

    amazeui.js

    :包含 Amaze UI 所有的 CSS、JS。

  • amazeui.flat.css

    :圆角版 Amaze UI CSS,演示参见

    1.x

  • amazeui.ie8polyfill.js

    :IE8 polyfill。

  • amazeui.widgets.helper.js

    供使用 Handlebars 的用户使用,其他用户请忽略,内含 Web 组件必须的 Handlebars helper 及 Web 组件模板 partials。

以上每个文件都有对应的 minified 文件。

版本号说明

Amaze UI 遵循 Semantic Versioning 规范,版本格式采用

主版本号.次版本号.修订号

的形式,版本号递增规则如下:

  • 主版本号:做了不兼容的API 修改,如整体风格变化、大规模重构等;
  • 次版本号:做了向下兼容的功能性新增;
  • 修订号:做了向下兼容的问题修正、细节调整等。

  • 1.x 到 2.x 变更记录暨升级指南

下载包目录结构

下载包中包含 Amaze UI 的 CSS、JS 文件,以及示例文件:

  • index.html

    - 空白 HTML 模板;

  • blog.html

    - 博客页面模板(预览);

  • landing.html

    - Landing Page 模板(预览);

  • login.html

    - 登录界面模板(预览);

  • sidebar.html

    - 带边栏的文章模板(预览);

  • admin-*.html

    - 简单的管理后台界面(预览

  • app.css

    中编写 CSS;

  • app.js

    中编写 JavaScript;

  • 图片资源可以放在

    i

    目录下。

AmazeUI
|-- assets
|   |-- css
|   |   |-- amazeui.css             // Amaze UI 所有样式文件
|   |   |-- amazeui.min.css           // 约 42 kB (gzipped)
|   |   `-- app.css
|   |-- i
|   |   |-- [email protected]
|   |   |-- favicon.png
|   |   `-- startup-640x1096.png
|   `-- js
|       |-- amazeui.js
|       |-- amazeui.min.js                // 约 56 kB (gzipped)
|       |-- amazeui.widgets.helper.js
|       |-- amazeui.widgets.helper.min.js
|       |-- app.js
|       `-- handlebars.min.js
|-- blog.html
|-- index.html
|-- landing.html
|-- login.html
|-- sidebar.html
`-- widget.html

创建一个页面

  1. 新建一个 HTML 文档,将下面的代码粘贴到文档中;
  2. 查看 CSS 组件及 JS 插件,拷贝符合的演示代码,粘贴到

    <body>

    区域,并按需调整;

  3. 一个简单的页面完成。

Copy

<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>Hello Amaze UI</title>
  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">
  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <link rel="icon" type="image/png" href="assets/i/favicon.png">
  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="assets/i/[email protected]">
  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="assets/i/[email protected]">
  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="assets/i/[email protected]">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <link rel="stylesheet" href="assets/css/amazeui.min.css">
  <link rel="stylesheet" href="assets/css/app.css">
</head>
<body>
<p>
  Hello Amaze UI.
</p>
<!--在这里编写你的代码-->
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="assets/js/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script src="assets/js/amazeui.min.js"></script>
</body>
</html>

参与讨论

有任何使用问题,请在评论中留言,也欢迎大家发表意见、建议。

喜欢 (0)
[🍬谢谢你请我吃糖果🍬🍬~]
分享 (0)
关于作者:
少将,关注Web全栈开发、项目管理,持续不断的学习、努力成为一个更棒的开发,做最好的自己,让世界因你不同。
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(3)个小伙伴在吐槽
  1. 短信平台http://www.mob.com/
    Mob2015-07-10 13:46 回复 未知操作系统 | 未知浏览器