我正在使用一个基本的文件管理器来维护我的网页文件。如何开始使用MDC-Web Vanilla
在MDC-Web Github project folder中有: README.md、index.js、material-components-web.scss和package.json。
我希望在我的项目中找到要添加到MDC-Web的<link>和<script>元素,类似于MDL和Bootstrap的工作方式。我在哪里可以找到这些?
发布于 2017-04-29 00:04:03
这是可行的。您需要在某些组件/元素上执行attach/initialize JS。
<link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:100,300,400,700,900">
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>https://stackoverflow.com/questions/42289547
复制相似问题