테이블 코딩시 브라우저마다 다른 렌더링~~~ㅜㅜ
핫파랑
위에는 FF
위 FF
IE화면
form action= method=post class=boardWrite
fieldset
legend게시물 등록 페이지/legend
table cellspacing=0 summary=게시물 등록 페이지입니다. id=boardWriteTable class=rowOrange
caption게시물 등록/caption
colgroup
col width=* /
col width=185 /
col width=100 /
col width=* /
/colgroup
tr
th scope=col colspan=4 class=viewTitleh4세관장에게 바친다/h4/th
/tr
tr
th scope=row글번호/th
td100/td
th scope=row작성일/th
td2008-10-12/td
/tr
tr
th scope=row작성자/th
td colspan=3홍길동/td
/tr
tr
th scope=row진행상태/label/th
td colspan=3답변완료/td
/tr
tr
th scope=row전화번호/th
td colspan=3064-782-3502/td
/tr
tr
th scope=row주소/th
&nbnbsp; td colspan=3제주특별자치도 서귀포시 성산읍 온평리/td
/tr
tr
th scope=row내용/th
td colspan=3아냐아냐아냐아냐!!!!!!!!/td
/tr
tr
th scope=row첨부파일/th
td colspan=3첨부파일.zip(1024888.kb)/td
/tr
tr
th scope=row비밀번호/th
td colspan=312345678/td
/tr
/table
div class=boardNavigation
a href=01_01_write.jsp class=buttonimg src=/images/board/btn_list.gif alt=목록 //a
input type=image src=/images/board/btn_registration.gif alt=등록 /
/div
/fieldset
/form.boardWrite{width:100%; font-size:100%;}
.boardWrite *{ margin:0; padding:0;}
.boardWrite fieldset{ border:0; position:relative;}
.boardWrite legend{ position:absolute; width:0; height:0; overflow:hidden; font:0/0 Sans-serif; visibility:hidden;}
.boardWrite table{}
.boardWrite th{width:88px; height:30px; padding:0px 0 0 12px; font-weight:bold; border-bottom:1px solid #FFF; text-align:left;}
.boardWrite td{ height:30px; padding:0 0 0 12px; }
.boardWrite td.W185{width:185px;}
.boardWrite h4{width:100%; font-size:120%;height:30px;_height /**/:40px;padding:5px 0 5px 15px;background:url(/images/board/bgThBlue.gif) no-repeat left top;color:#419ece; border:1;}
#boardWriteTable {width:100%;color:#333;}
#boardWriteTable th{border-top:1px solid #FFF; margin:0;padding-right:10px; font-size:95%;}
#boardWriteTable td{ height:33px; *height:24px;padding:4px 10px; border-top:1px solid #d2d2d2; border-bottom:1px solid #d2d2d2; font-size:95%;}
#boardWriteTable td .inputSelect{width:auto; height:auto; }
#boardWriteTable td input{border:1px solid #d2d2d2; padding:2px 4px 2px 4px; height:12px; _height /**/:19px;*margin:-1px 0;font-size:105%;}
#boardWriteTable td .inputText{width:60%; }
#boardWriteTable td .inputText2{width:97%;}
#boardWriteTable td .inputText3{width:240px; }
#boardWriteTable td .inputBasic{width:140px;}
#boardWriteTable td .inputFile{height:auto;}
#boardWriteTable td .inputPassword{width:70px;}
#boardWriteTable td .addText{margin:0;}
#boardWriteTable td .zipcode{width:155px;}
#boardWriteTable td .address{width:184px;}
#boardWriteTable td .textarea{width:99%;height:150px;font-size:105%;}
#boardWriteTable.rowOrange th.viewTitle{border:0px solid red;font-size:105%;height:30px; _height /**/:45px !important; padding:5px 0 10px 15px !important;
_padding /**/:5px 0 0 15px !important; _line-height /**/:27px; background:url(/images/board/bgThOrange.gif) no-repeat left top;}
#boardWriteTable.rowOrange th h4 {width:500px;margin:0; padding:0; background:none;color:#f8a804 !important;}
작업사항이 너무 많아 dl dt로 하기 바빠서 테이블 코딩 하려고 하는데요
width값이 브라우저 별로 안맞아서요.. 저렇게 4개로 span해줬을때 ....
th 부분 빽그라은드 색이 다 달라서 클래스로 빼주고요
100px고정값이여서주고 padding-right값 주고 했는데요
브라우저마다 렌더링 값이 다르네요..자로 재보니 10px정도 차이나는데..
td 부분도 할때마다 td width값을 css로 잡기보다 col로 잡는게 나을거 같아 그렇게 주었는데
만약 td를 col에서 width:185px 주면 IE에서는 200px정도가 나와버리네요..
차이가 10px이상 나버려서,,어떻게 해야할지 난감하네요..
그냥 넘겨 버리기엔 너무 많이 차이가 나버리는,,,
여러분은 어떻게 코딩 하시나요? dl dt dd로 하기엔 이미 너무 많이..
스토리보드를 이제야 넘겨받아서 생각지도 못한 레이아웃...아 골아파..
-
소아 2026-07-02
이런 문제는 th,td 에 padding을 넣지 말고, th,td 안에 p 또는 span 을 넣어 패딩을 조절하면 어떨까요?
그리고 윗분 말씀처럼 table에 table-layout:fixed; 를 넣어야 내용 길이에 따른 폭변화를 피할수 있습니다. -
민트 2026-07-02
네 박스모델 각각 다르게 렌더링 되는거 익히 알고 있어요.
class에서 박스모델 계산법대로 적고 해도 저런 현상이 발생하네요.
제 생각에는
일단 맨윗단 h4가 들어있는 th 4행을 모두 합쳤더니 저런 현상이 발생하는것 같습니다.
맨윗것만 빼면 나머지 동일하게 나오거든요.
cdk에 검색 해봤더니 col로 width값을 넣으면 된다던데. 역시 크로싱브라우저 에서는 무리같습니다.
결국 딴방법으로 해결 봤어요.ㅎㅎ -
둘빛 2026-07-02
col 요소로 셀크기를 정할시 th나 td요소에 좌우padding이 있으면 브라우져마다 렌더링이 다릅니다.
예로 col width=\100\이고 padding-right:10px;
ff - width:90px + padding-right:10px = 100px
ie - width:100px : padding-right:10px = 110px 로 렌더링됩니다.
오페라, 사파리, 크롬, ie8 등 비교하면 다들 제각각 렌더링합니다.
수다님 말씀처럼 -
두힘 2026-07-02
table-layout:fixed넣으면 되지 않을까요?
-
천사의눈물 2026-07-02
저도 %로 해봤는데요..IE5.5~7에서는 안되더라구요.
맨처음 th를 몽땅 합쳐버렸더니 저런 문제가,,,
col로 해도 안먹고... -
권시크 2026-07-02
tabledptj width값 계산이 다르니 %로 넣는게 가장 좋을거 같아요. ie8 beta2 보니깐 ff처럼 너비를 랜더링하더라구요.
-
라일락 2026-07-02
이제 보니 IE, 오페라에서 th 100px 가 120으로 보여지는,,
윽..FF가 잘못된것인가..
테이블은 어디에 맞춰서 코딩해야 맞는건지..참... -
한울 2026-07-02
이제 보니까 맨위 th colspan=4가 있으니까 width값이 다 달라 보이네요
저게없는 거는 다 동일하게 보이는듯....윽
| 번호 | 제 목 | 글쓴이 | 날짜 |
|---|---|---|---|
| 2752024 | 소숫점 뺄셈 !! ㅠㅜ | 초롬 | 2026-10-20 |
| 2751970 | 자바 게임 만들려는데 부탁드립니다 (1) | 라온제나 | 2026-10-19 |
| 2751908 | 자바스크립트 처리속도를 체크할 수 있는 방법 있나요? (1) | 테이 | 2026-10-19 |
| 2751822 | 그누보드 아이프레임으로 구현했는데 제목 클릭해서 들어가면 푸터가 동동...떠다녀요 | 내꺼하자 | 2026-10-18 |
| 2751790 | 자바 그래픽 관련을 공부하고 싶은데요.. 어디 좋은 사이트나 책 없을까요?? (1) | 큰재 | 2026-10-18 |
| 2751733 | CTF가머죠? (5) | 두동 | 2026-10-17 |
| 2751709 | 배열부분 궁금한 부분이있습니다. | 딸기우유 | 2026-10-17 |
| 2751677 | 포인터 책을 보다가,,, (2) | 동백 | 2026-10-17 |
| 2751648 | 익스플로 버전에 따라서 생기는 공백.. (1) | 모아 | 2026-10-17 |
| 2751623 | DEL 태그의에서 선굵기 및 컬러지정이 가능한가 해서요~ (4) | 비치나 | 2026-10-16 |
| 2751573 | 테마 업로드 에러.. (1) | 꽃 | 2026-10-16 |
| 2751548 | 수학? 물리?? (3) | 찬늘 | 2026-10-16 |
| 2751461 | 상단네비 fixed ie6 핵 해결방안이 있을까요? | 맑다 | 2026-10-15 |
| 2751436 | 레이아웃을 잡고 코딩을 하는데 드림위버에서의 결과와 IE에서 결과가 다르게 나오네요. (3) | 키클 | 2026-10-15 |
| 2751403 | 형들좀도와주세요string compression (1) | 알렉산더 | 2026-10-14 |
| 2751349 | 링크 다운로드하기 | 팬지 | 2026-10-14 |
| 2751295 | c++한번도 손않댄 사람이... | 날위해 | 2026-10-13 |
| 2751267 | 플래시8 사용에서 플레이어 만들었는데요 (1) | 블1랙캣 | 2026-10-13 |
| 2751182 | 회원가입 | 파랑새 | 2026-10-12 |
| 2751152 | 소셜 플러그인 문제입니다. | 얀 | 2026-10-12 |
