• 회원가입
  • 로그인
  • 구글아이디로 로그인

[font] CSS - font-weight 속성 ★ - 글자굵기 (= font-weight속성 = 폰트굵기 = 글씨체굵기 =글씨굵기 = 글자굵기 = 글씨두께 = 글자두께 = 서체굵기=글꼴굵기 = 폰트웨이트속성, 상속 O)

목차
  1. font-weight 예제 - 글자 굵기
  2. font-weight 정의
  3. font-weight 구문

 

font-weight 예제 - 글자 굵기 

 
<p style="font-weight: normal;">normal 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: bold;">bold 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: bolder;">bolder 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: lighter;">lighter 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: 100;">100 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: 200;">200 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: 300;">300 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: 400;">400 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: 500;">500 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: 600;">600 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: 700;">700 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: 800;">800 홈짱닷컴 (homzzang.com)</p>
<p style="font-weight: 900;">900 홈짱닷컴 (homzzang.com)</p>

결과보기
 

font-weight 정의

 
폰트 굵기 지정.

 


 
1.
  • 기본값 : normal
  • 상속여부: O
  • 애니효과: O
  • CSS버전: CSS1
  • JS구문: object.style.fontWeight="bold"
 
2.
모든 브라우저 지원.
 
 

font-weight 구문

 
선택자 {font-weight: normal|bold|bolder|lighter|number|initial|inherit;}

 


[속성값]
 
normal 
기본 굵기 (기본값) (= 400)
 
bold
굵은 서체 (= 700)
 
bolder 
상속된 굵기보다 더 굵은 서체
 
lighter 
상속된 굵기보다 더 얇은 서체
 
number
굵기 지정 숫자 (100단위로 900까지 가능. 숫자 클수록 굵음.)
100 200 300 400 500 600 700 800 900 
 
initial
이 속성의 기본값으로 설정.
 
inherit
부모 요소의 굵기를 상속



분류 제목
border CSS - border-style 속성 ★ - 테두리모양일괄 (= border-style속성 = 보더스타일속…
box CSS - padding 속성 ★ - 안쪽여백 (= padding속성 = 패딩속성)
box CSS - min-height 속성 - 최소높이 (= 최소세로길이 = min-height속성 = 민하이트속성…
outline CSS - outline-style (아웃라인스타일) - 테두리 외곽 스타일 (상속 X) : (IE8)
intro CSS - @charset 구문 - 스타일시트 인코딩방식 설정 (= 언어셋지정/문자셋지정 = @charset…
selector CSS - :last-child 가상선택자 - 그 부모의 마지막자식요소인 지정요소 (= :last-child…
border CSS - border-left 속성 - 테두리좌측일괄 (= 테두리왼쪽일괄 = border-left속성 = …
selector CSS - :lang() 가상선택자 - 특정언어속성요소 (= 언어선택자 = 랭선택자, IE8)
list CSS - list-style-position 속성 ★ - 리스트 스타일 위치 (= 리스트 마커 위치 = …
box CSS - max-height 속성 - 최대높이 (= 최대세로길이 = max-height속성 = 맥스하이트속…
selector CSS - element>element 자식선택자 ★ - 직접 자식요소만 선택. (요소선택자, IE7)
text CSS - writing-mode 속성 - 텍스트 방향 가로/세로 제어. (= 글쓰기 방향 = 쓰기 모드 제…
animation CSS - animation-iteration-count 속성 - 애니반복횟수 (= 움직임반복횟수, IE10…
func CSS - hsl() 함수 - (색조, 채도, 밝기)로 색상 정의. (= hsl함수 = 에이치에스엘함수/흐슬…
border CSS - border 속성 ★ - 테두리일괄 (= border속성 = 보더속성) (상속X)
background CSS - background-attachment 속성 - 배경이미지 고정 (= background-atta…
selector CSS - :nth-child() 가상선택자 ★ - 그 부모의 n번째 자식요소 (=nth-child선택자 =…
background CSS - background 속성 ★ - 배경 일괄 (= background속성 = 백그라운드속성)
animation CSS - animation-direction 속성 - 애니방향 (= 움직임방향 = 애니메이션디렉션속성, I…
responsive CSS - Responsive Image - (반응형 이미지) ★★★
22/27
목록
찾아주셔서 감사합니다. Since 2012