Pixate Freestyle表 - 查看-cell:选定的伪类
-
21-12-2019 - |
题
我有一个包含一个包含视图和一些标签的自定义单元格。 The view must have a different background color when the cell is selected (als some other properties but lat's start with getting the selected pseudo class working).
我正在使用PixateFreestyle版本2.1.2。
应用此行时:
table-view.goals table-view-cell:selected content-view { background-color: blue; }
.
视图始终是蓝色,即使未选择单元格。
我是否需要设置一些其他属性以获得此伪类工作?
解决方案
我可能是错的,但我认为selected
伪类可以与孩子一起使用。
如果您只想要选择不同的背景颜色,为什么不使您的content-view
的背景透明,只是这样做:
table-view.goals table-view-cell:selected{
background-color: blue;
}
.
您应该在选择上看到定义的字段定义的背景颜色。它适合我。
不隶属于 StackOverflow