2017-03-27 4 views
1

왜 그런지 모르지만 부트 스트랩 (3.3.7)의 글리프콘이 누락되어 정상적이고 추악한 사각형으로 대체됩니다. 여기에 누락 된 glyphicon 호출하는 코드의 예입니다부트 스트랩 글리프가 없음

 <button type="button" class="btn btn-default"> 
      <span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star 
     </button> 

는 그리고 여기가 glyphicon의 글꼴이 들어있는 부트 스트랩의 일부입니다

당신이 그것을 업데이트해야
@font-face { 
    font-family: 'Glyphicons Halflings'; 

    src: url('../fonts/glyphicons-halflings-regular.eot'); 
    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); 
} 
+0

글리프콘 또는 부트 스트랩 파일에 링크되는 코드 부분을 표시 할 수 있습니까? –

+0

@BlueBoy 고마워,하지만 이미 내 문제를 해결! 그러나 부트 스트랩에서 glyphicon의 글꼴 부분을 남겼습니다. –

답변

3

를 사용 CDN 링크이 추가를 코드에

<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> 
+0

저에게 도움이되었습니다! 정말 고맙습니다! –

+0

나는 초보자이고 upvote 수 없습니다,하지만 이미 그것을 올바르게 표시했습니다! –

+0

Vlw, sou brasileiro também, 보아 sorte! –

0

당신은 다운로드 후 프로젝트에서 글꼴을 둘 필요가,이 링크 http://getbootstrap.com.br/getting-started/#download에 부트 스트랩을 다운로드해야합니다. 새 버전에서는 부트 스트랩 패키지에 글꼴이 없지만 이전 버전에서는 다운로드 할 수 있습니다.