chinasd211 2010-04-09 08:41
浏览 193
已采纳

IE6.0 Div的显示问题

//背景色
//图片png
//

css是这样写的,IE7中的效果如图2,IE6的效果如图1
.top-div{
height: 132px; width: 100%;
background-image: url('../../lc_images/main_images/top-bg.jpg');
background-repeat: repeat-x; z-index: -1;
}
.top-div .logo{
width: 347px; height: 132px; float: right;
background-image: url('../../lc_images/main_images/top-right-logo.png');
behavior: url("pngbehavior.htc");
background-repeat: repeat-x; z-index: 0;
}
.top-div .bottom{
width: 100%; margin-top: 15px;
background-image: url('../../lc_images/main_images/top-bottom-bar.png');
background-repeat: repeat-x; height: 21px;
vertical-align:top; position:absolute;
}

  • 写回答

1条回答 默认 最新

  • CaiHuajiang 2010-04-09 11:08
    关注

    ie6不支持png图片的背景透明。
    可以使用gif格式,当然大图片就不适合了。
    其次使用ie6的透明滤镜,可以到网上找些相关资料。
    个人感觉最好的办法是,直接设置为一个背景图片,因为这是美工的活。。。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?