웹 구성 요소로 웹 글꼴을 가져 오려고하는데 글꼴이 렌더링되지 않습니다. 누군가가 이것에 대해 밝힐 수 있을까요? Google은이 문제에 대해 많은 관심을 보이지 않았습니다. 더 자세한 정보가 필요하시면 알려주세요. 감사! @ font-face가 폴리머/웹 구성 요소에서 작동하지 않습니다.
그냥해야 할
가에 좋은 수준에서 글꼴의 얼굴을 포함하는 CSS입니다 ...@font-face {
font-family: 'open_sansextrabold';
src: url('fonts/OpenSans-ExtraBold-webfont.eot');
src: url('fonts/OpenSans-ExtraBold-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/OpenSans-ExtraBold-webfont.woff') format('woff'),
url('fonts/OpenSans-ExtraBold-webfont.ttf') format('truetype'),
url('fonts/OpenSans-ExtraBold-webfont.svg#open_sansextrabold') format('svg');
font-weight: normal;
font-style: normal;
}
header a {
font-family: "open_sansextrabold";
display: block;
height: 50px;
width: 150px;
color: #fff;
text-decoration: none;
text-align: center;
line-height: 50px;
transition: background-color 1s ease;
-webkit-transition: all 140ms cubic-bezier(0.420, 0.000, 0.580, 1.000);
-moz-transition: all 140ms cubic-bezier(0.420, 0.000, 0.580, 1.000);
-o-transition: all 140ms cubic-bezier(0.420, 0.000, 0.580, 1.000);
transition: all 140ms cubic-bezier(0.420, 0.000, 0.580, 1.000); /* ease-in-out */
-webkit-transition-timing-function: cubic-bezier(0.420, 0.000, 0.580, 1.000);
-moz-transition-timing-function: cubic-bezier(0.420, 0.000, 0.580, 1.000);
-o-transition-timing-function: cubic-bezier(0.420, 0.000, 0.580, 1.000);
transition-timing-function: cubic-bezier(0.420, 0.000, 0.580, 1.000); /* ease-in-out */
}
답을 완성하는 중 - 외부. +1 –
Polymer 요소의 @ font-face ouside를 이동하고 상대 URL을 수정해도 나에게 적합합니다! 고마워요 @Monty! – Camille