Latest web development tutorials
×

CSS 참조 설명서

CSS 참조 설명서 CSS 선택자 CSS 음성 참조 CSS Web 안전 글꼴 CSS 생기 CSS 단위 CSS 색 CSS 법률 색상 값 CSS 색 이름 CSS 16 진수 색상 값 CSS 브라우저 지원

CSS 재산

align-content align-items align-self all animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function appearance backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-align box-direction box-flex box-flex-group box-lines box-ordinal-group box-orient box-pack box-shadow box-sizing caption-side clear clip color column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset cursor direction display empty-cells filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font @font-face font-family font-size font-size-adjust font-stretch font-style font-variant font-weight grid-columns grid-rows hanging-punctuation height icon justify-content @keyframes left letter-spacing line-height list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top max-height max-width @media min-height min-width nav-down nav-index nav-left nav-right nav-up opacity order outline outline-color outline-offset outline-style outline-width overflow overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page-break-after page-break-before page-break-inside perspective perspective-origin position punctuation-trim quotes resize right rotation tab-size table-layout target target-name target-new target-position text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-style text-indent text-justify text-outline text-overflow text-shadow text-transform text-wrap top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility white-space width word-break word-spacing word-wrap z-index

CSS3의 @ 글꼴 얼굴 규칙

그 URL을 찾기 위해 "myFirstFont"라는 이름의 글꼴을 지정하고 위치를 지정합니다 :

@ 글꼴 얼굴
{
글꼴 - 가족 : myFirstFont;
SRC : 홈페이지 ( 'Sansation_Light.ttf'),
URL ( 'Sansation_Light.eot'); / * IE9 * /
}

»시도

브라우저 지원

Internet ExplorerFirefoxOperaGoogle ChromeSafari

인터넷 익스플로러 9, 파이어 폭스, 오페라, 크롬, 사파리 지원 @ 글꼴 얼굴 규칙.

그러나, 인터넷 익스플로러 9은 글꼴, 파이어 폭스, 크롬, 사파리, 오페라 지원 .TTF의 유형 .eot 및 글꼴의 두 가지 유형의 .OTF 지원합니다.

참고 : 인터넷 익스플로러 8과 IE의 이전 버전 @ 글꼴 얼굴 규칙을 지원하지 않습니다.


정의 및 지침을 속성

@ 글꼴 얼굴 규칙은 웹 디자이너는 더 이상 "웹 안전한"글꼴 하나를 사용할 필요가 없습니다.

글꼴, 글꼴의 이름 - 얼굴 규칙 :

  • 글꼴 - 가족 : myFirstFont;

어딘가에 서버에 포함 된 글꼴 파일 참조 CSS :

  • SRC : 홈페이지 ( 'Sansation_Light.ttf')

폰트 파일은 다른 위치에있는 경우, 전체 URL을 사용

  • SRC : 홈페이지 ( '../../ www.w3cschool.css / CSS3 / Sansation_Light.ttf')

이제 글꼴을 사용할 수 있습니다, 다음은 모든 div 요소를 사용하는 방법의 예입니다 :

사업부
{
글꼴 - 가족 : myFirstFont;
}

구문 :

    @ 글꼴 얼굴
    {
    글꼴 속성
    }

사업부에 사용 된 글꼴의 예는 다음과 같습니다

사업부
{
글꼴 - 가족 : myFirstFont;
}


문법

@ 글꼴 얼굴
{
글꼴 속성
}

글꼴 설명 설명
글꼴 - 가족 이름 필요합니다. 글꼴 이름을 정의합니다.
SRC URL 필요합니다. 글꼴 다운로드 URL을 정의 (S)
글꼴 스트레칭 표준
응축
울트라 응축
- 별도의 응축
반 응축
확장
반 확장
- 추가 확장
울트라 확장
선택 사항. 글꼴이 신장되는 방법을 정의합니다. 기본값은 "정상"입니다
글꼴 스타일 표준
이탤릭체
비스듬한
선택 사항. 같이 있어야 글꼴 스타일을 정의합니다. 기본값은 "정상"입니다
글꼴 무게 표준
대담한
(100)
(200)
(300)
(400)
(500)
(600)
(700)
(800)
(900)
선택 사항. 사용자 정의 글꼴 두께. 기본값은 "정상"입니다
유니 코드 범위 유니 코드 범위 선택 사항. 범위는 글꼴은 유니 코드 문자를 지원 정의된다. 기본값은 "U + 0-10 FFFF"입니다


관련 기사

CSS3 튜토리얼 : CSS3 글꼴