`
chembo
  • 浏览: 923918 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

IE6背景透明background-repeat无效

    博客分类:
  • css
阅读更多
IE6下使图片背景透明很多方法,最经典莫过于那个png.js,但是有一个弊端是它不支持background-repeat,解决这个办法很简单,直接在需要透明的地方加上:
style="background:url(../images/prompt_bottomr_c.png);_background:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src='../images/prompt_bottomr_c.png');"

其中background是给其它浏览器的,_background和_filter是给IE6的。

分享到:
评论

相关推荐

    background-repeat 的学习.zip

    background-repeat 的学习.zip下载!

    CSS中背景background-position负值定位

    CSS中背景background-position负值定位 CSS中背景background-position负值定位 CSS中背景background-position负值定位 CSS中背景background-position负值定位 CSS中背景background-position负值定位

    background-removal-js

    Background Removal JS 是一个使用 JavaScript 实现的背景去除库或工具。...background-removal-js is a JavaScript library that allows developers to remove the background from images directly in the

    IE6 PNG 透明

    我们知道IE6是不支持透明的PNG的,这无疑限制了网页设计的发挥空间. 然而整个互联网上解决这个IE6的透明PNG的方案也是多不胜数,从使用IE特有的滤镜或是e-xpression, 再到javascript透明GIF替代.但是这些方法都有一个...

    HTML5&CSS3网页制作:设置多重背景图像.pptx

    在CSS3中,通过background-im、age等属性提供多个属性值可以实现多重背景图像效果,各属性值之间用逗号隔开。 background: background-color background-image background-position background-repeat background-...

    HTML5一笔连珠小游戏.zip

    background-repeat: no-repeat no-repeat; "><div></div>; top: 340px; left: 50%; width: 119px; height: 44px; margin-left: -59px; background-image: url(image/start.png); background-attachment: initial; ...

    CSS3的Background-size很重要

    MooTools程序员Christoph Pojer在他的网站上运用了background-size技术,使得在浏览器上他的头像始终“全面覆盖”在页头上——甚至是在手机上。下面让我们来看看神奇的background-size属性是如何使用的。 background...

    CSS中背景图片定位方法:background-position的用法

    CSS中背景图片定位方法:background-position的用法,附带算法

    批量输出 CSS background-position 属性的定位像素值

    批量输出 CSS background-position 属性的定位像素值

    前端开源库-css-background-video

    前端开源库-css-background-videoCSS背景视频,一个支持背景视频作为CSS属性的HTML5填充程序

    CSS3样式表-字体、文本、背景属性.pptx

    ;单元2-3 字体、文本、背景属性;;;;;;;;;;;;;;;;;;;;;;;...背景属性 background background-color background-image backeground-position background-repeat backeground-size background-origin;

    rn-background-geolocation-demo, 针对本机背景地理定位插件的演示应用程序.zip

    rn-background-geolocation-demo, 针对本机背景地理定位插件的演示应用程序 [Demo App ] react-native-background-geolocation全功能,反应本机演示应用程序的反应本地背景地理定位模块。 安装$ git clone ...

    css属性详解说明,css属性详解说明

    background 简写属性,作用是将背景属性设置在一个声明中。 background-attachment 背景图像是否固定或者随着页面的其余部分滚动...background-repeat 设置背景图像是否及如何重复。........................更多精彩

    IE下background背景图片无法显示问题解决方法

    在做下拉框select的时候用一个箭头符号,作为下拉框的三角,在firefox和chrome下均可以正常显示,但是在IE下无法显示。 查找了很久,发现是图片格式问题,把png格式的... background:url(images/arrow.gif) no-repeat 1

    background和background-Color的区别介绍

    background-color 只能设置 背景颜色 设置background-color: #aaa;时仅仅改变了背景色,但此时有一个默认的的background:repeat; 而设置background: #aaa;后,相当于同时设置了background:no-repeat; 既{...

    Android代码-cordova-plugin-background-mode

    Most mobile operating systems are multitasking capable, but most apps dont need to run while in background and not present for the user. Therefore they pause the app in background mode and resume the ...

    CSS3之背景尺寸Background-size使用介绍

    CSS3之背景尺寸Background-size是CSS3中新加的一个有关背景的属性,这个属性是改变背景尺寸的通过各种不同是属性值改变背景尺寸呈现的大小。下面就想来看下有关CSS3 之背景尺寸Background-size的介绍吧。 一、...

    Web前端开发基础:综合练习 .ppt

    3、背景重复 background-repeat属性值 repeat 导致图像在水平垂直方向上都平铺,就像以往背景图像的通常做法一样。repeat-x 和 repeat-y 分别导致图像只在水平或垂直方向上重复,no-repeat 则不允许图像在

    Web前端开发基础:CSS控制表单.ppt

    --*-- 1 单元目标 2 教学内容 3 动手实践 4 课堂小结 单元目标 使用CSS控制页面背景、表格、...} 3、背景重复 background-repeat属性值 repeat 导致图像在水平垂直方向上都平铺,就像以往背景图像的通常做法一样。rep

    ie(IE) png 半透明 插件

    内含插件及使用说明 ie(IE)png半透明插件使用微软的VML语言对PNG图片进行重新绘制,以达到半透明的效果,并且能支持background-position和background-repeat属性。

Global site tag (gtag.js) - Google Analytics