ASP .Net 中的透明 GridView?
我想知道是否有任何方法可以使 GridView
透明。 我知道边框可以设为透明,并且我知道如何做到这一点,
但区域 1图像中的 和 2,单元格背景 和 标题 是我关心的问题。 我更喜欢保留原始背景图像,所以我更喜欢透明度。但如果不行的话 我想我也可以接受添加背景图像。
提前致谢。
I wonder if is there any way to make a GridView
transparent.
I know that the borders can be made transparent and i know how to do it,
but the area 1 and 2 in the image, backgrounds of the cells and titles are my concern.
i prefer to keep my original background image so i prefer transparency. But if it's a no go
i can accept to add a background image too i guess.
Thanx in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来您正在使用 GridView 的内置样式。例如,您的 gridview 可能看起来像这样:
如果是这种情况,只需删除所有样式,如下所示:
或者,您可以使用 CSS 和 !important 属性覆盖 Gridview 的内联样式,如下所示(您需要相应地更新 CSS):
It looks like you're using the built in styles of a GridView. For example, your gridview might look something like:
If that is the case, just remove all of your styles like so:
Alternatively, you can override the inline styles of the Gridview using CSS and the !important property like so (you'll need to update the CSS accordingly):
创建一个透明的小图像。
然后使用css将其添加到表中:
Create a small image that is transparent.
Then use css to add it to the table: