Jquery中文网 www.jquerycn.cn
Jquery中文网 >  CSS教程  >  经典实例  >  正文 IE6下PNG背景透明

IE6下PNG背景透明

发布时间:2020-05-13   编辑:www.jquerycn.cn
jquery中文网为您提供IE6下PNG背景透明等资源,欢迎您收藏本站,我们将为您提供最新的IE6下PNG背景透明资源

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>ie6下png背景透明</title>
<style>
.bg{
 height:288px;
 width:512px;
 filter: progid:dximagetransform.microsoft.alphaimageloader(enabled=true, sizingmethod=scale, src="http://down.111cn.net/img/title.png" );
 background-repeat: repeat;
}
</style>
</head>

<body>
<div class="bg">fdsf</div>
</body>
</html>

语法:
filter : progid:dximagetransform.microsoft.alphaimageloader ( enabled=benabled , sizingmethod=ssize , src=surl )


如果是想使用png做背景透明的话,需要用到css教程滤镜和hack:

html>body .png { background:url(1.png); width:300px; height:100px; border:#000 solid 1px;}

/* ie6 */* html .png { filter: progid:dximagetransform.microsoft.alphaimageloader(enabled=true, sizingmethod=scale, src='1.png');
    background:none; width:300px; height:100px; border:#000 solid 1px;}

 

 

您可能感兴趣的文章:
IE6下PNG背景透明
php生成透明背景图片实例
css 定义png图片为透明背景
CSS设置半透明背景实例详解
photoshop快速抠出黑色背景的透明玻璃杯教程
如何用VB6创建透明图象
CSS透明属性详解及背景透明继承解决办法hack
ie8下png图片的jquery渐隐渐现动画黑色背景bug
js 可伸缩网页内容展示效果
兼容IE6 Png图片完全透明解决方法

[关闭]