eclipse中的未知标签(md-toolbar)

时间:2016-06-03 09:12:29

标签: angularjs eclipse angular-material

我正在尝试学习角度材料,并在下面找到链接: http://www.tutorialspoint.com/angular_material/angular_material_environment.htm

我遵循基于CDN的安装并复制了以下代码:

<!DOCTYPE html>
<html>
<head>
      <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css">
      <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
      <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.min.js"></script>
      <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-aria.min.js"></script>
      <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-messages.min.js"></script>
      <script src="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js"></script>

      <script type="text/javascript">    
         angular.module('firstApplication', ['ngMaterial']);
      </script>   

<meta charset="ISO-8859-1">
<title>Camera streaming area Demo</title>
</head>
<body>

<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>

进入我的eclipse角度项目,但是当我运行这个应用程序时没有找到css效果。 Eclipse在每个 md标记

上显示警告
  

未知标签(md-toolbar)。

我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

这应该没问题,md-toolbarmd-content不属于HTML element specification。 eclipse中的验证没有考虑Angular中定义的自定义指令。

我假设示例正在按预期运行?