AI编程助手
AI免费问答

轻量级的HTML/CSS/JS框架:MUI_html/css_WEB-ITnose

  2016-06-24 11:41   1369浏览 原创


MUI 是一个轻量级的 HTML、CSS 和 JS 框架,遵循 Google 的 Material Design 设计思路。MUI CSS可以在使用SASS源码时,通过GitHub或Bower来轻松定制它。自定义的范围包括响应断点,默认字体设置和使用Material Design颜色等等。MUI CSS/JS并不依赖任何其他的程序。

Features

MUI is designed from the ground up to be fast, small and developer friendly. By design it only includes the basic components you need to build a site that follows Google's Material Design guidelines. Some of the key features of MUI are:

  • Small footprint: mui.min.css - 5.6K, mui.min.js - 3.7K (gzipped)
  • A responsive grid to make mobile-friendly sites
  • No external dependencies
  • CSS library that can be customized with your own colors
  • JS library can be loaded asyncronously
  • Email library for styling HTML emails

To get started using MUI, go to the MUI website to see examples and download boilerplate HTML.

Browser Support

MUI is tested and works in:

  • IE10+
  • Latest Stable: Firefox, Chrome, Safari
  • iOS 6+

Development Quickstart

  • Install dependencies

    • nodejs (http://nodejs.org/)
    • npm (https://www.npmjs.org/)
    • sass (http://sass-lang.com/)
    • http-server (via npm)
  • Clone repository

    $ git clone [email protected]:muicss/mui.git$ cd mui
  • Install node dependencies using npm

    $ npm install
  • Build examples

    $ ./node_modules/.bin/gulp build-examples

    To view the examples you can use any static file server. To use the nodejs http-server module:

    $ npm install http-server$ ./node_modules/.bin/http-server -p 3000

    Then visit http://localhost:3000/examples

  • Watch changes and re-build

    $ ./node_modules/.bin/gulp watch
  • 示例 HTML:

    nbsp;html>      <meta>    <meta>    <!-- load MUI -->    <link>    <script></script>        <!-- example content -->    <div>      <div>        <h1>My Title</h1>        <button>My Button</button>      </div>    </div>  

    项目主页:http://www.open-open.com/lib/view/home/1436230157833

    前端入门到VUE实战笔记:立即学习
    >在学习笔记中,你将探索 前端 的入门与实战技巧!

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。