日期:2014-05-17  浏览次数:20757 次

IE下如何设置frameset的背景色
<frameset rows="80,*" cols="*" frameborder="yes" border="3" bordercolor="#000000" style="background-image:url('m.jpg') " framespacing="0">
  <frame src="UntitledFrame-3.htm" name="topFrame" scrolling="NO" noresize>
  <frameset rows="*" cols="150,*" framespacing="0" frameborder="1" bordercolor="#000000" border="1">
  <frame src="UntitledFrame-1.htm" name="leftFrame" scrolling="auto" >
  <frame src="UntitledFrame-2.htm" name="mainFrame">
  </frameset>
</frameset>
这段代码在firefox可以正常显示背景图片,IE6下无法显示背景图片

------解决方案--------------------
HTML code
<frameset rows="80,*" cols="*" frameborder="yes"  border="3" bordercolor="#000000" style="background:url('m.jpg') " framespacing="0"> 
  <frame src="UntitledFrame-3.htm" name="topFrame" scrolling="NO"  noresize> 
  <frameset rows="*" cols="150,*" framespacing="0" frameborder="1" bordercolor="#000000" border="1"> 
    <frame src="UntitledFrame-1.htm" name="leftFrame" scrolling="auto"  > 
    <frame src="UntitledFrame-2.htm" name="mainFrame"> 
  </frameset> 
</frameset>