关于框架的背景色,开始我是这么设的
<table> <tr> <td id="frmTitle"> <iframe frameborder="0" id="frmLeft" name="frmLeft" scrolling="auto" src="LeftMenu.aspx" style="width: 160px; height: 500px; visibility: inherit; background-color :#799ae1;z-index: 0;"></iframe> </td> </tr> </table> |
并且frmtitle也设了背景色浏览都不显示,后来从网上查阅得知,iframe的allowtransparency="true" 设为True,这样背景色可以随意设置了。
<table> <tr> <td id="frmTitle"> <iframe frameborder="0" id="frmLeft" name="frmLeft" allowtransparency="true" scrolling="auto" src="LeftMenu.aspx" style="width: 160px; height: 500px; visibility: inherit; background-color :#799ae1;z-index: 0;"></iframe> </td> </tr> </table> |