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

[DOM_Style] JS - borderCollapse 속성 - 테두리겹침설정 (= 테두리중첩설정 = 테두리이중방지 = 보더컬랩스속성)

borderCollapse 예제 

 

<table id="hz" border="1">

  <tr>

    <th>언어</th>

    <th>기능</th>

  </tr>

  <tr>

    <td>HTML</td>

    <td>뼈대</td>

  </tr>

  <tr>

    <td>CSS</td>

    <td>디자인</td>

  </tr>

</table>


<button type="button" onclick="homzzang()">클릭</button>


<script>

function homzzang() {

  document.getElementById("hz").style.borderCollapse = "collapse";

}

</script>

 

결과보기

 

 

 정의 

 

 

 


 

 

.

기본값: 

반환값: 를 나타내는 문자열

CSS속성: 
CSS버전: CSS

4.

브라우저 지원. 

 

 

 

 구문 

 

[접근]

 

 

[설정]


 


 

[속성값]

 

 

 


 

방문 감사합니다. (즐겨찾기 등록: Ctrl + D)

분류 제목
게시물이 없습니다.
목록
찾아주셔서 감사합니다. Since 2012