200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > 微信小程序last-child first-child 样式失效的解决办法

微信小程序last-child first-child 样式失效的解决办法

时间:2020-07-31 04:26:07

相关推荐

微信小程序last-child first-child 样式失效的解决办法

使用last-child或者first-child 需要将子集包在一个父元素中才可以生效

.tab-content text:last-child {

margin-right: 0;

}

<view class="tab-content"><text bindtap="tapActive" data-active="1" class="{{active === '1'?'active':''}}">贸易代采</text><text bindtap="tapActive" data-active="2" class="{{active === '2'?'active':''}}">应收账款</text><text bindtap="tapActive" data-active="3" class="{{active === '3'?'active':''}}">存货质押</text><text bindtap="tapActive" data-active="4" class="{{active === '4'?'active':''}}">预付货款</text><text bindtap="tapActive" data-active="5" class="{{active === '5'?'active':''}}">普惠金融</text></view>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。