레일즈 5.1.4를 아래 코드와 함께 사용하고 있습니다. material.js 파일이 처리되고 material-components-web 모듈이 다운로드되고 발견되었음을 확인했습니다. window.mdc.autoInit()으로 전화 할 때 mdc이 정의되지 않은 이유는 무엇입니까? // app/javascript/packs/material.js
impor
예를 들어 데스크탑에 6 개의 열이있는 중앙 집중식 그리드 셀이 필요합니다. docs에는 다음과 같이 표시됩니다 : 그리드는 기본적으로 가운데 정렬됩니다. 이 동작을 변경하려면 mdc-layout-grid-align-left 또는 mdc-layout-grid-align-right 수정 자 클래스를 추가 할 수 있습니다. 은 그럼 내가 입력 : <div cl
miterial-components-web.css를 index.html 파일 헤더에 추가했습니다. <script src="node_modules/material-components-web/dist/material-components-web.js"></script>
<script src="dist/bundle.js"></script>
CSS 구성 요소가
MDC typography은 Roboto 글꼴에만 해당하거나 다른 Google 글꼴로 구현할 수 있습니까? 그렇다면 font-family CSS를 body에 적용하는 것이 좋습니다. 마지막으로 h1의 의미가 깨지는 것처럼 보이는 all header elements are tied to the <h1> element은 일반적으로 h5보다 더 중요한 의미를가집