2013-06-21 1 views
2

둘 다 약간 다른 서식을 사용하기 때문에 사용자가 자신의 컴퓨터에 설치된 글꼴 대신 강제로 웹 글꼴을 사용하게하려는 문제점이 있습니다. 나는 !important을 찾았지만 확실하지는 않습니다. 나는 그것을 시도했을 때 작동하지 않는지 알지 못합니다. 아무도 여기 !important@font-face에 사용하는 방법을 말해 줄 수 있습니까? 유효합니까?@ font-face에! important를 넣는 것이 유효합니까?

+1

당신은'글꼴 - face'을 지배의 시작 부분에 사용자 정의 글꼴을 사용하는 경우 중요하지 않아도 그 글꼴을 사용할 것입니다. –

+0

정말요? 방법???? –

+0

이 링크에서 글꼴 - 규칙을 읽으십시오 : http://msdn.microsoft.com/en-us/library/ie/ms530757%28v=vs.85%29.aspx – falguni

답변

1

그래서 이런 식으로 뭔가 :

CSS

@font-face { 
    font-family: 'custom-font'; 
    src: url('custom-font.eot'); 
    src: url('custom-font.eot?#iefix') format('embedded-opentype'), 
     url('custom-font.woff') format('woff'), 
     url('custom-font.ttf') format('truetype'), 
     url('custom-font.svg#custom') format('svg'); 
    font-weight: normal; 
    font-style: normal; 

} 



p { font-family: 'custom-font', Arial, sans-serif; } 

HTML

<p>Your text here</p> 
관련 문제