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

[text] CSS - text-decoration-style 속성 - 텍스트라인모양 (굵은선, 파선, 점선, 물결선 등) (= text-decoration-style속성 = 텍스트라인스타일속성)

목차
  1. text-decoration-style 예제 - 텍스트 라인 모양
  2. text-decoration-style 정의
  3. text-decoration-style 구문

 

text-decoration-style 예제 - 텍스트 라인 모양

 

<style>

div {margin-bottom:30px; font-size:30px;}


div.a {

  text-decoration-line: underline;

  text-decoration-style: solid;

}


div.b {

  text-decoration-line: underline;

  text-decoration-style: double;

}


div.c {

  text-decoration-line: underline;

  text-decoration-style: dotted;

}


div.d {

  text-decoration-line: underline;

  text-decoration-style: dashed;

}

div.e {

  text-decoration-line: underline;

  text-decoration-style: wavy;

}

</style>


<div class="a">solid - Homzzang.com</div>

<div class="b">double - Homzzang.com<</div>

<div class="c">dotted - Homzzang.com</div>

<div class="d">dashed - Homzzang.com<</div>

<div class="e">wave - Homzzang.com<</div>


결과보기

 

text-decoration-style 정의

 

텍스트 라인 모양 지정.
(예: 굵은선, 파선, 점선, 물결선 등)

 


 

1.

text-decoration-line 속성은 필수.

즉, text-decoration-line 정의되야 text-decoration-style 속성 사용 가능.

 

2.

text-decoration 속성으로 아래 3가지 속성을 한번에 정의 가능.
text-decoration-line (필수)

text-decoration-style

text-decoration-color

 

3.

기본값: solid

상속여부: X

애니효과: X

CSS버전: CSS3

JS구문: object.style.textDecorationStyle="wavy"

 

4.

IE 및 Safari 지원 X. 나머지 최신 브라우저는 모두 지원.

 

 

text-decoration-style 구문

 

selector {text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit;}

 


[속성값]

 

solid

굵은선 (기본값)

double
2줄겹침선


dotted
점선 (= 점을 일정 간격으로 벌려놓은 선)

dashed
파선 (= 짧은 막대선을 일정 간격으로 벌려놓은 선)

 

wavy

물결선 (= 물결 모양의 구불구불한 선)

initial

이 속성의 기본값으로 설정.

inherit

부모요소의 속성값 상속.

 


 


분류 제목
selector CSS - :focus 가상선택자 - 포커스 된 요소 선택 (= :focus선택자 = 포커스선택자) (I…
position CSS - position 속성 ★★★ - 위치기준대상지정 (= 위치속성 = 포지션속성 = 위치조정 = po…
font CSS - font-family 속성 ★ - 글자종류 (= font-family속성 = 폰트패밀리속성 = 글…
position CSS - overflow 속성 ★★ - 범위이탈요소처리 (= 범위넘는요소처리 = 스크롤바 생성 = over…
button CSS - Button - 버튼스타일 (버튼크기, 버튼색깔, 버튼비활성화, 버튼그룹, 이미지위버튼)
27/27
목록
찾아주셔서 감사합니다. Since 2012