[HTML5] 테이블과 관련된 몇가지 태그(업데이트 날짜: 04/05/20)
2004.05.07 04:10
5381
174
https://eond.com/20477
object(HotopayModel)#900 (23) { ["error"]=> int(0) ["message"]=> string(7) "success" ["variables"]=> array(0) { } ["httpStatusCode"]=> int(200) ["module"]=> string(7) "hotopay" ["module_info"]=> NULL ["origin_module_info"]=> NULL ["module_config"]=> NULL ["module_path"]=> string(52) "/home/eond/web/eond.com/public_html/modules/hotopay/" ["xml_info"]=> NULL ["module_srl"]=> NULL ["mid"]=> NULL ["act"]=> NULL ["template_path"]=> NULL ["template_file"]=> NULL ["layout_path"]=> NULL ["layout_file"]=> NULL ["edited_layout_file"]=> NULL ["stop_proc"]=> bool(false) ["user"]=> object(Rhymix\Framework\Helpers\SessionHelper)#899 (20) { ["member_srl"]=> int(0) ["user_id"]=> NULL ["user_name"]=> NULL ["nick_name"]=> NULL ["email_address"]=> NULL ["phone_number"]=> NULL ["homepage"]=> NULL ["blog"]=> NULL ["birthday"]=> NULL ["denied"]=> NULL ["status"]=> NULL ["is_admin"]=> string(1) "N" ["is_site_admin"]=> NULL ["profile_image"]=> NULL ["image_name"]=> NULL ["image_mark"]=> NULL ["signature"]=> NULL ["description"]=> NULL ["group_list"]=> array(0) { } ["menu_list"]=> array(0) { } } ["request"]=> object(Rhymix\Framework\Request)#10 (13) { ["method"]=> string(3) "GET" ["compat_method"]=> string(3) "GET" ["url"]=> string(27) "coding/20477/comment/465133" ["hostname"]=> string(8) "eond.com" ["domain"]=> NULL ["protocol"]=> string(5) "https" ["callback_function"]=> string(0) "" ["_route_status":protected]=> int(200) ["_route_options":protected]=> object(stdClass)#11 (5) { ["cache_control"]=> bool(true) ["check_csrf"]=> bool(true) ["is_forwarded"]=> bool(false) ["is_indexable"]=> bool(true) ["enable_session"]=> bool(true) } ["module"]=> string(5) "board" ["mid"]=> string(6) "coding" ["act"]=> string(16) "dispBoardContent" ["args"]=> array(5) { ["category"]=> string(5) "20254" ["document_srl"]=> string(5) "20477" ["comment_srl"]=> string(6) "465133" ["mid"]=> string(6) "coding" ["act"]=> string(16) "dispBoardContent" } } ["ajaxRequestMethod"]=> array(2) { [0]=> string(6) "XMLRPC" [1]=> string(4) "JSON" } ["gzhandler_enable"]=> bool(true) }

http://miniwini.com/miniwinis/bbs/index.php?bid=share&m=clip&mode=read&id=2386&p=1아래 위쯔형님의 코멘트를 추가하여 조금 수정하였습니다.

*(알짜 코멘트니 주의깊게 읽어보세요. ^_^)



아는 게 얼마 되지 않아 이것밖에 없네요. 틀린 것이 있다면 지적해주세요.

그리고 테이블과 관련하여 유용하게 사용할 수 있는 태그라면 코멘트로 몇 개 더 추천해주세요.



1) nowrap

지정한 셀(td) 넓이를 벗어나는 글자나 이미지는 잘라낸다.

한 줄에 모든 글자를 표시한다. 즉, 두 줄을 만들지 않는다.

(셀 안에 있는 모든 문자열 나타낼 수 있음?)



2) style='table-layout:fixed'

모든 셀과 셀 사이의 간격을 동일하게 맞춰준다.

(위쯔 曰, table-layout:fixed 상태에서 width를 지정하지 않으면 강제로 100%로 세팅되며,

COL이나 첫 TR의 TD에서 셀의 크기가 지정되어 있지 않으면 100%를 기준으로 동일하게 크기가 결정됩니다.)

게다가 이 안에 넣은 이미지는 테이블 크기에 맞게 자동 줄어듭니다. (추가:2004/05/20)

1) 테이블 넓이를 잡아주지 않았을 땐 자동 100%를 기준으로 모든 셀의 간격을 동일하게 만들어 주고,
2) 테이블 렌더링 속도 또한 높여주고,
3) 이미지의 크기까지 맞춰준다.


사용 예제)

table width='' height='48' border=0 bordercolor='' frame=border cellpadding=0 cellspacing=0 style='table-layout:fixed'





3) style='word-break:break-all;'

셀 안에 있는 글자는 무조건 다 나타낸다.

[참고] nowrap 과 같이 쓰면 무조건 한 줄에 모든 글자를 다 나타낼 수 있다.



사용 예제)

td nowrap style='word-break:break-all;'

(셀 넓이가 부족해서 글자가 아래로 내려가는 경우가 생길 수 있습니다. 이럴 때 nowrap과 같이 사용하게 되면

원하고자 하는 모양대로 나올 것입니다.)

라이믹스는 이온디와 함께

HTML5/CSS3
-
+
닫기

마이페이지

로그인을 해주세요

네이버로 로그인