프레임 세트가 있으며 각 프레임의 테이블은 width:100%
입니다. IE 8과 9에서는 표가 전체 창을 채우지 않지만 그 대신에 이상한 오른쪽 여백이 있습니다. 다른 모든 브라우저에서 제대로 작동했습니다. IE에서 프레임의 스크롤 막대 공간을 예약합니다.
이것은 계략 코드입니다. 각 프레임은 scrolling=auto
입니다.
그러나 나는 아직도 해결책을 찾을 수 없습니다 : 인터넷에서 나는이 관련 논의를 보았다. 페이지 본문에 scroll=no
을 추가하면 공간이 제거되지만 필요한 경우 스크롤바가 표시되지 않습니다. 몇 가지 다른 해결책을 시도했지만 아직 완전히 작동하는 해결책을 찾을 수 없습니다.
편집 : 이것은 수직 분할 프레임에서만 발생합니다.
샘플 코드 :
index.html을
<html>
<frameset rows="150,*" cols="*" framespacing="0" border="0" frameborder="no">
<frame scrolling="auto" noresize src="top.html" name="menu">
<frame scrolling="auto" noresize src="bottom.html" name="main">
</frameset>
</html>
의 top.html
<html>
<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgColor="#AAFFAA">
<table cellspacing=0 cellpadding=0 width="100%" border=1>
<tr>
<td width="100%" align=middle>TOP<td>
</tr>
</table>
</body>
</html>
의 bottom.html
<html>
<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgColor="#FFAAAA">
<table cellspacing=0 cellpadding=0 width="100%" border=1>
<tr>
<td width="100%" align=middle>bottom<td>
</tr>
</table>
</body>
</html>
를 추가
시도. –