展会信息港展会大全

IE6下PNG背景透明 android软件开发教程
来源:互联网   发布日期:2016-03-25 15:55:42   浏览:2325次  

导读:!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 / titleie6下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;}

赞助本站

人工智能实验室

相关热词: 开发 编程 android

相关内容
AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港