나는 폴리머으로 경기 시작 그리고 난이 구조와 요소 건물입니다 :폴리머 - 폴리머 요소 내부에 표시 요소
내index.html
파일에서
<link rel="import" href="../bower_components/polymer/polymer.html">
<polymer-element name="e-card" attributes="background" contructor="eCard" noscript>
<template>
<style>
h1
{
color: #123;
font-size: 3em;
text-align: center;
}
p
{
color: #333;
}
</style>
</template>
</polymer-element>
이 같은 요소를 호출
...
<head>
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
<link rel="import" href="elements/e-card.html">
</head>
<body>
<e-card>
<h1>This is my card</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
</e-card>
</body>
...
을
하지만 브라우저에서 파일을 열면 아무 것도 표시되지 않습니다. 나는 무엇을 잘못 했는가?
'전자 카드'에 HTML 요소가 정의되어 있지 않은 것 같습니다. –