关于CSS中alpha的问题!!!求救!在线等~~~

qtisans 2006-10-13 12:42:57
有这样一个CSS类
.tb
{
filter:alpha(opacity=80);
}

然后这样一个表格:

<table class="tb" bgcolor="white">
<tr>
<td><asp:Image ImageURL="..."/></td>
</tr>
</table>

在这里我想让表格透明但里面的图片不透明要怎么做???



[

另外定义一个不透明的 css样式,然后image的cssclass是这个样式就可以了

.tb
{
filter:alpha(opacity=80);
}
.tb img
{
filter:alpha(opacity=100);
}

]

上面这种方法不行啊..
...全文
125 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ywwr 2006-10-13
  • 打赏
  • 举报
回复
错了.class给table也一样.
应该是你的css写错了.
ywwr 2006-10-13
  • 打赏
  • 举报
回复
看错了.不好意思.

#d1{
background-image:url(3.gif);filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);
}

<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id=d1 height="100"> </td>
</tr>
</table>

测试正常.也就是应该把class给<td> 而不是table
qtisans 2006-10-13
  • 打赏
  • 举报
回复
晕...我是想让..
表格的背景透明而图片不透明啊...
ywwr 2006-10-13
  • 打赏
  • 举报
回复
<table bgcolor="white">
<tr>
<td><asp:Image class="tb" ImageURL="..."/></td>
</tr>
</table>
试试

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧