WinJS:Listview item 设置背景透明

简介:

如果只是在Item的css中简单的添加“background-color:transparent;”,会发现item会变成黑色的,原因是item本身是黑色,你增加颜色透明应该只是增加了层透明色,所以显示黑色.

解决方案:

在对应的css中重写样式:

.win-listview :not(.win-footprint) .win-container {
    background-color: rgba(255, 255, 255, 0);
}

详细问题描述可以看MSDN上同样的问题讨论:http://social.msdn.microsoft.com/Forums/en-US/winstoreappzhcn/thread/fea6756c-5d7e-4668-bfc5-6a8e720b53ad


本文转自老Zhan博客园博客,原文链接:http://www.cnblogs.com/mybkn/archive/2013/04/08/3008297.html,如需转载请自行联系原作者

相关文章
|
7月前
element-ui框架的el-dialog弹出框被遮罩层挡住了/el-drawer....会生成v-model元素的组件被遮罩层挡住
element-ui框架的el-dialog弹出框被遮罩层挡住了/el-drawer....会生成v-model元素的组件被遮罩层挡住
|
10月前
|
存储 C++ 开发者
QListWidget和QListView的使用和item点击事件
QListWidget和QListView的使用和item点击事件
element-ui:el-dialog遮罩层变黑
element-ui:el-dialog遮罩层变黑
413 0
RecyclerView的item宽度不能全屏显示
RecyclerView的item宽度不能全屏显示
192 0
|
Windows
自定义Window标题栏titleBar
自定义Window标题栏titleBar
306 0
自定义Window标题栏titleBar
WPF listview item mouse enter/over popup
This is because the routing strategy of the Loaded event is Direct, which means that the routed event does not route though an element tree.
956 0