게시판 내용의 넓이(width)를 고정하는 방법? 정보
게시판 내용의 넓이(width)를 고정하는 방법?
본문
이미지를 첨부할때 원하는 사이즈 이상이면 제한된 크기 이하로 보여주는 기능이 있습니다. 그런데, 첨부파일이 아닌 태그로 불려지는 그림이나 기타 테이블 태그와 같이 넓이를 주는 경우에 게시판의 넓이보다 내용의 넓이가 클때 제어하는 방법이 없나요? 보통 블로그 같은 경우 아이프레임에 넣어버려서 일정크기 이상이 되면 스크롤바가 생기도록 해버리던데.. 아이프레임 아니더라도 이렇게 사용하시는 분 없나요? 사용하는 스킨은 cheditor 적용 스킨입니다. 고수님들 부탁합니다~~ |
윗 글을 일부러 테이블 폭을 넓게 만들어 봤는데 여기서도 마찬가지로 오른쪽이 보기 않좋게 늘어나지는 않지만 보이지도 않네요.. 아마도 레이어로 구현한것 같은데.. 제꺼 같은 경우는 오른쪽으로 보기 않좋게 늘어나 버리는데.. 좋은 방법 없나요?
댓글 전체

테이블 고정시키는 태그 아닌가요?
STYLE="table-layout:fixed" ...
혹시 다른거 얘기하시는지...
STYLE="table-layout:fixed" ...
혹시 다른거 얘기하시는지...

테이블 고정하면 윗글처럼 글이 잘리잖아요?
그래서 cheditor.js 에서
editor.document.write("<html><head><style>");
editor.document.write("#post-area .post-view {overflow: auto;overflow-x: auto;overflow-y: hidden;width:100%; position:relative; padding:15px 0 15px 0; margin:0 0 15px 0; clear:both; text-align:justify; } ");
editor.document.write("#post-area .post-head, #post-area .post-footer, #post-area .post-body, #post-area .post-top {border-collapse:collapse; table-layout:fixed;} ");
editor.document.write("</style></head>");
editor.document.write("<body style='margin:0;background-color:"+this.editorBgcolor+"'></body></html>");
여기까지는 했는데.. 문제는 글쓰기를 하면 위의 스타일 태그가 다 날라가 버리네요..
안날라가고 유지하는 법은 없을까요?
제가 원하는건 네이버블로그 처럼 게시판 폭이 늘어나면 스크롤바가 생기게 하고 싶습니다
전 이게 아이프레임인줄 알았는데 스타일 태그로 구현한 방법이었네요..
그래서 cheditor.js 에서
editor.document.write("<html><head><style>");
editor.document.write("#post-area .post-view {overflow: auto;overflow-x: auto;overflow-y: hidden;width:100%; position:relative; padding:15px 0 15px 0; margin:0 0 15px 0; clear:both; text-align:justify; } ");
editor.document.write("#post-area .post-head, #post-area .post-footer, #post-area .post-body, #post-area .post-top {border-collapse:collapse; table-layout:fixed;} ");
editor.document.write("</style></head>");
editor.document.write("<body style='margin:0;background-color:"+this.editorBgcolor+"'></body></html>");
여기까지는 했는데.. 문제는 글쓰기를 하면 위의 스타일 태그가 다 날라가 버리네요..
안날라가고 유지하는 법은 없을까요?
제가 원하는건 네이버블로그 처럼 게시판 폭이 늘어나면 스크롤바가 생기게 하고 싶습니다
전 이게 아이프레임인줄 알았는데 스타일 태그로 구현한 방법이었네요..
