行点击后显示黑点, 什么情况?

发布于 6 年前作者 yxu7919 次浏览最后编辑 6 年前来自 ask

   

2 回复
ping02
ping021 楼5 年前

https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

弄成可复现的代码片段吧,没css挺难猜的

jun87
jun872 楼4 年前
<view class="tr" 
bindtap="rowClick" 
data-row="{{x}}" 
data-idx="{{idx}}"          
style="background-color:{{selectedIdx == idx?'red':'white'}};color:{{selectedIdx == idx?'white':'black'}}"
>