教程
优质
小牛编辑
137浏览
2023-12-01
Angular Material是Angular JS开发人员的UI组件库。 Angular Material组件有助于构建有吸引力,一致且功能强大的Web页面和Web应用程序,同时遵循现代Web设计原则,如浏览器可移植性,设备独立性和优雅降级。 它有助于创建更快,更美观,更灵敏的网站。 它的灵感来自Google Material Design。
听众 (Audience)
本教程适用于渴望学习Angular Material基础知识以及如何使用它来创建更快,更美观和响应更快的网站的专业人士。 本教程解释了Angular Material的基本概念。
先决条件 (Prerequisites)
在继续学习本教程之前,您应该对Angular JS,HTML,CSS,JavaScript,文档对象模型(DOM)和任何文本编辑器有基本的了解。 此外,如果您了解基于Web的应用程序的工作原理,它将会有所帮助。
<!--Execute Angular Material Online
For most of the examples given in this tutorial, you will find a Try-it option. Use this option to execute your Angular Material programs then and there and enjoy your learning.
Try the following example using the Try-it option available at the top right corner of the following sample code box −
<html lang = "en"> <head> <link rel = "stylesheet" href = "https://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css"> <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.min.js"></script> <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-aria.min.js"></script> <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-messages.min.js"></script> <script src = "https://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js"></script> <script type = "text/javascript"> angular.module('firstApplication', ['ngMaterial']); </script> </head> <body ng-app = "firstApplication" ng-cloak> <md-toolbar class = "md-warn"> <div class = "md-toolbar-tools"> <h2 class = "md-flex">HTML 5</h2> </div> </md-toolbar> <md-content flex layout-padding> <p>HTML5 is the next major revision of the HTML standard superseding HTML 4.01, XHTML 1.0, and XHTML 1.1. HTML5 is a standard for structuring and presenting content on the World Wide Web.</p> <p>HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).</p> <p>The new standard incorporates features like video playback and drag-and-drop that have been previously dependent on third-party browser plug-ins such as Adobe Flash, Microsoft Silverlight, and Google Gears.</p> </md-content> </body> </html>-->