내용

글번호 646
작성자 heojk
작성일 2017-04-26 11:29:33
제목 CSS 추가규칙
내용 @- rule @font-face 웹 폰트 설정 @font-face { font-family: ‘폰트 이름’; src: url(‘/content/font.eot’); } @import CSS 파일에서 다른 CSS파일을 추가 @import url(‘otherstyle.css’); @media 미디어 타입 및 속성 지정 @import url(default.css) print; @media screen { p { color: blue; } } 미디어 타입은 screen, print 등 이 있음 미디어 쿼리 속성 width, height, device-width, device-height orientation : 장치의 방향(portrait, landscape) device-aspect-ratio : 화면의 비율 color : 장치의 색상 비트 color-index : 장치에서 표현 가능한 최대 색상 개수 monochrome : 흑백 장치의 픽셀당 비트 수 resolution : 장치의 해상도