CSS

[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

부모요소의 속성값 상속.

 


 


분류 제목
column CSS - column-width 속성 - 컬럼 너비 지정 (= column-width속성 = 컬럼위드스속성…
column CSS - columns 속성 - (컬럼최소너비/컬럼개수) 일괄 지정 (= columns속성 = 컬럼즈속성)
box CSS - box-sizing 속성 ★★ - 너비결정방식 (= 길이결정방식 = box-sizing속성 = 박…
flex CSS - FlexBox (플렉스박스) 소개 ★★★ - 새로운 반응형 레이아웃 모델 ※ (가로/세로) (기본…
flex CSS - flex-direction 속성(C) ★★ - 기본축 방향 결정. (= flex-direction…
flex CSS - justify-content 속성(C) ★★★ - 기본축에서 아이템 정렬. (= justify-…
flex CSS - align-items 속성(C) ★★★ - 교차축에서 아이템 정렬. (= align-items속성… 2
flex CSS - flex-wrap 속성(C) ★ - 아이템 줄바꿈 가능 여부. (= flex-wrap속성 = 플렉…
flex CSS - align-content 속성(C) ★★ - 줄바꿈 된 경우, 교차축 기준으로 라인 정렬. (= …
flex CSS - flex-flow 속성(C) ☆ - (flex-direction / flex-wrap) 속성 일괄…
flex CSS - order 속성(I) - 아이템 순서 재조정 (= order속성 = 오더속성, IE11) ※ 플렉…
flex CSS - align-self 속성(I) ★ - 교차축 기준으로, 아이템 자체 정렬. (= align-sel…
responsive CSS - @media 구문 - 미디어쿼리 이용한 반응형 스타일 구현 (= media쿼리) ※ IE/Edge…
responsive CSS - RES Intro - (반응형 웹디자인 소개)
responsive CSS - Viewport ★ - 사용자에게 보이는 웹페이지 영역 (= 메타태그 뷰포트 ※ 반응형 필수조건 …
14/33
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티 2
웹유틸
회원센터
홈짱닷컴 PC버전 로그인