table 태그의 frame 속성을 이용하여 테이블 만드는 방법
페이지 정보
작성자 서방님 댓글 0건 조회 80회 작성일 08-08-20 13:54본문
table 태그의 속성 가운데 많이 사용하지 않는 것 중 하나가 frame 속성이다. 하지만 table 태그에 frame 속성을 사용하면 상당히 깔끔한 테이블을 만들 수 있다. frame 속성에 설정할 수 있는 값은 9가지가 있지만 그 중 void, hsides, vsides를 많이 사용하게 될 것이다. 기본적으로 이 속성들은 테이블의 바깥 경계에 대한 표시 유무를 결정해 준다. 이제 각 속성에 대한 실제 예들을 살펴 보도록 하자.
예1 : <table border="1" cellspacing="0" cellpadding="5" frame=void bordercolor="gray"> | ||||||
| ||||||
예2 : <table border="1" cellspacing="0" cellpadding="5" frame=above bordercolor="gray"> | ||||||
| ||||||
예3 : <table border="1" cellspacing="0" cellpadding="5" frame=below bordercolor="gray"> | ||||||
| ||||||
예4 : <table border="1" cellspacing="0" cellpadding="5" frame=hsides bordercolor="gray"> | ||||||
| ||||||
예5 : <table border="1" cellspacing="0" cellpadding="5" frame=vsides bordercolor="gray"> | ||||||
| ||||||
예6 : <table border="1" cellspacing="0" cellpadding="5" frame=lhs bordercolor="gray"> (lhs : left ahnd side의 약자) | ||||||
| ||||||
예7 : <table border="1" cellspacing="0" cellpadding="5" frame=rhs bordercolor="gray"> (rhs : right ahnd side의 약자) | ||||||
|
이 외에도 frame 속성으로 box와 border가 있는데 이 속성들은 모두 바깥 테두리를 표시하는 속성이다.
댓글목록
등록된 댓글이 없습니다.